Part Number Hot Search : 
01002 KA7805ER AHC1G 29F40 2SC2688 2N6667BD AMS29 NTE267
Product Description
Full Text Search
 

To Download EVAL-ADUC7023QSPZ2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  precision analog microcontroller, 12-bit analog i/o, arm7tdmi mcu with enhanced irq handler data sheet aduc7023 rev. e document feedback information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 ?2010C2013 analog devices, inc. all rights reserved. technical support www.analog.com features analog i/o multichannel, 12-bit, 1 msps adc up to 12 adc channels fully differential and single-ended modes 0 v to v ref analog input range 12-bit voltage output dacs 4 dac outputs available on-chip voltage reference on-chip temperature sensor voltage comparator microcontroller arm7tdmi core, 16-bit/32-bit risc architecture jtag port supports code download and debug clocking options trimmed on-chip oscillator (3%) external watch crystal external clock source up to 44 mhz 41.78 mhz pll with programmable divider memory 62 kb flash/ee memory, 8 kb sram in-circuit download, jtag-based debug software-triggered in-circuit reprogrammability vectored interrupt controller for fiq and irq 8 priority levels for each interrupt type interrupt on edge or level external pin inputs on-chip peripherals 2 fully i 2 c-compatible channels spi (20 mbps in master mode, 10 mbps in slave mode) with 4-byte fifo on input and output stages up to 20 gpio pinsdigital only gpios are 5 v tolerant 3 general-purpose timers watchdog timer (wdt) programmable logic array (pla) 16 pla elements 16-bit, 5-channel pwm power specified for 3 v operation active mode: 11 ma at 5 mhz, 28 ma at 41.78 mhz packages and temperature range 32-lead 5 mm 5 mm lfcsp 40-lead lfcsp 36-lead wlcsp fully specified for ?40c to +125c operation tools low cost quickstart development system full third-party support applications optical networking industrial control and automation systems smart sensors, precision instrumentation base station systems general description the aduc7023 is a fully integrated, 1 msps, 12-bit data acquisition system, incorporating high performance multichannel adcs, 16-bit/32-bit mcus, and flash/ee memory on a single chip. the adc consists of up to 12 single-ended inputs. an additional four inputs are available but are multiplexed with the four dac output pins. the adc can operate in single-ended or differential input modes. the adc input voltage is 0 v to v ref . a low drift band gap reference, temperature sensor, and voltage comparator complete the adc peripheral set. the dac output range is programmable to one of two voltage ranges. the dac outputs have an enhanced feature of being able to retain their output voltage during a watchdog or software reset sequence. the devices operate from an on-chip oscillator and a pll, generating an internal high frequency clock of 41.78 mhz. this clock is routed through a programmable clock divider from which the mcu core clock operating frequency is generated. the microcontroller core is an arm7tdmi?, 16-bit/32-bit risc machine that offers up to 41 mips peak performance. eight kilobytes of sram and 62 kilobytes of nonvolatile flash/ee memory are provided on chip. the arm7tdmi core views all memory and registers as a single linear array. the aduc7023 contains an advanced interrupt controller. the vectored interrupt controller (vic) allows every interrupt to be assigned a priority level. it also supports nested interrupts to a maximum level of eight per irq and fiq. when irq and fiq interrupt sources are combined, a total of 16 nested interrupt levels are supported. on-chip factory firmware supports in-circuit download via the i 2 c serial interface port, and nonintrusive emulation is supported via the jtag interface. these features are incorporated into a low cost quickstart? development system supporting this microconverter? family. the part contains a 16-bit pwm with five output signals. for communication purposes, the part contains 2 i 2 c channels that can be individually configured for master or slave mode. an spi interface supporting both master and slave modes is also provided. the parts operate from 2.7 v to 3.6 v and are specified over an industrial temperature range of ?40c to +125c. the aduc7023 is available in either a 32-lead or 40-lead lfcsp package. a 36-ball wafer level csp package (wlcsp) is also available.
aduc7023 data sheet | page 2 of 96 table of contents features .............................................................................................. 1 applications ....................................................................................... 1 general description ......................................................................... 1 revision history ............................................................................... 3 functional block diagram .............................................................. 4 specifications ..................................................................................... 5 timing specifications .................................................................. 8 absolute maximum ratings .......................................................... 13 esd caution ................................................................................ 13 pin configurations and function descriptions ......................... 14 typical performance char acteristics ........................................... 18 terminology .................................................................................... 19 adc specifications .................................................................... 19 dac specific ations ..................................................................... 19 overview of the arm7tdmi core ............................................. 20 thumb mode (t) ........................................................................ 20 lon g multiply (m) ...................................................................... 20 embeddedice (i) ....................................................................... 20 exceptions ................................................................................... 20 arm registers ............................................................................ 20 interrupt latency ........................................................................ 21 memory organization ................................................................... 22 memory access ........................................................................... 22 flash/ee memory ....................................................................... 22 sram ........................................................................................... 22 memory mapped registers ....................................................... 22 adc circuit overview .................................................................. 29 transfer function ....................................................................... 29 typical operation ....................................................................... 30 mmr interface ............................................................................ 30 converter operation .................................................................. 33 driving the analog inputs ........................................................ 34 calibration ................................................................................... 34 temperature sensor ................................................................... 34 band gap reference ................................................................... 36 nonvolatile flash/ee memory ..................................................... 37 programming .............................................................................. 37 security ........................................................................................ 38 flash/ee control interface ....................................................... 38 execution time from sram and flash/ee ............................ 41 reset and remap ........................................................................ 41 other analog peripherals .............................................................. 44 dac .............................................................................................. 44 power supply mon itor ............................................................... 46 comparator ................................................................................. 46 oscillator and pll power control ........................................ 48 digita l peripherals .......................................................................... 51 general - purpose input/output ................................................ 51 serial peripheral interface ......................................................... 54 i 2 c ..................................................................................................... 59 configuring external pins for i 2 c functionality ................... 59 serial clock generation ............................................................ 59 i 2 c bus addresses ....................................................................... 59 i 2 c registers ................................................................................ 60 programmable logic array (pla) ........................................... 67 pulse - width modulator ................................................................. 71 pulse - width modulator general overview ........................... 71 processor refere nce peripherals ................................................... 76 interrupt system ......................................................................... 76 irq ............................................................................................... 76 fast interrupt req uest (fiq) .................................................... 77 vectored interrupt controller (vic) ....................................... 78 timers .......................................................................................... 83 h ardware design considerations ................................................... 88 power supplies ............................................................................. 88 grounding and board layout recommendations ................. 89 clock oscillator .......................................................................... 89 power - on reset operation ....................................................... 90 typical system configuration .................................................. 91 development tools ......................................................................... 92 pc - based tools ........................................................................... 92 in - circuit i 2 c downloader ....................................................... 92 outline dimensions ....................................................................... 93 ordering guide .......................................................................... 95 rev. e
data sheet aduc7023 rev. e | page 3 of 96 revision history 7/13rev. d to rev. e changes to ordering guide ........................................................... 95 7/13rev. c to rev. d added wlcsp (thr oughout) ......................................................... 1 changes to features section ............................................................ 1 added shared analog/digital inputs to agnd rating of ?0.3 v to av dd + 0.3 v, endnote 1, and endnote 2; table 8 .................. 13 added figure 9; renumbered sequentially; added wlcsp pin numbers to table 9 ......................................................................... 14 changes to pin p1.7/pwm3/sda1/plai[6] and pin p1.6/pwm2/scl1/plai[5] descriptions; table 9 ..................... 16 changes to adc circuit overview section, transfer function section, and figure 20 caption ..................................................... 29 changes to typical operation section, adccon register section, and adcon[13] description in table 24 .................... 30 changes to bits[4:3] value 10 description; table 24 .................. 31 changes to converter operation section and deleted pseudo differential mode section .............................................................. 33 changes to figure 27 and figure 28 caption .............................. 34 changes to table 30 and following text ...................................... 36 changes to jtag access section .................................................. 37 changes to references to adc and the dacs section ............. 45 changes to general-purpose input/output section .................. 51 changes to spidiv register section ............................................ 56 changes to bits[1:0] value 01 description; table 66 .................. 61 changes to t0clri register section ........................................... 84 changes to figure 53 ...................................................................... 90 updated outline dimensions ........................................................ 93 changes to ordering guide ........................................................... 95 5/12rev. b to rev. c changed sdata to sda and sclk to scl, table 2; sdata to sda and sclk to scl, table 3; and sdata to sda and sclk to scl, figure 2 ................................................................................. 8 changes to figure 7, figure 8, and table 9 .................................. 14 changed sclk to scl, table 17 ................................................... 25 changed sclk to scl, table 18 ................................................... 26 changes to bit 6, table 24 and 4 to 0, description column, table 25 ............................................................................................. 30 changed reference in refcon register section from table 22 to table 30 ........................................................................................ 35 added note 1 to table 53 ............................................................... 49 changes to note 1, table 55 ........................................................... 50 changed spiclk (serial clock i/o) pin section to sclk (serial clock i/o) pin section ....................................................... 53 changed spiclk to sclk in serial peripheral interface section and in sclk (serial clock i/o) pin section ............................... 53 changes to table 79 ........................................................................ 68 changes to timers section ............................................................ 82 added hours, minutes, seconds, and 1/128 format section and table 101 ........................................................................................... 82 changes to t0ld register section and t1ld register section ..... 83 changes to t2ld register section ....................................................... 85 updated outline dimensions ........................................................ 92 changes to ordering guide ........................................................... 93 7/10rev. a to rev. b changes to temperature sensor parameter in table 1 ................ 6 change to table 10 and changes to table 11 ............................... 23 changes to table 12 and table 13 ................................................. 24 changes to table 16 and table 17 ................................................. 25 changes to table 18 ........................................................................ 26 change to table 21 and changes to table 22 ............................... 27 changes to table 24 ........................................................................ 29 changes to adcgn register and adcof register sections . 32 changes to temperature sensor section ..................................... 34 changes to table 29 ........................................................................ 35 change to remap register and rstclr register sections ... 41 change to rstkey1 register and rstkey2 register sections ............................................................................................. 42 changes to oscillator and pllpower control section .......... 48 changes to general-purpose input/output section .................. 51 changes to serial peripheral interface section ........................... 53 changes to table 75 ........................................................................ 67 changes to table 83 and pulse-width modulator general overview section ............................................................................ 70 changes to table 84 ........................................................................ 71 change to table 85 .......................................................................... 72 change to fiqstan register section ......................................... 81 change to t2clri register section ............................................. 85 6/10rev. 0 to rev. a changes to temperature sensor parameter in table 1 ................ 6 changes to table 24 ........................................................................ 29 changes to temperature sensor section ..................................... 34 changes to dacbkey0 register section and to table 43 ........ 47 changes to ordering guide ........................................................... 93 1/10revision 0: initial version
aduc7023 data sheet | page 4 of 96 functional block dia gram 08675-001 aduc7023 40-lead lfcsp dac0 dac1 dac2 dac3 adc0 xclki xclko rst v ref adc12 adc2/cmp0 adc3/cmp1 cmp out 12-bit dac 12-bit dac 12-bit dac 12-bit dac vectored interrupt controller 1msps 12-bit adc temp sensor band gap ref mux osc and pll psm por arm7tdmi-based mcu with additional peripherals pla 3 general- purpose timers 2k 32 sram 31k 16 flash/eeprom spi, 2 i 2 c gpio pwm jtag figure 1. rev. e
data she et aduc7023 | page 5 of 96 specifications av dd = iov dd = 2.7 v to 3.6 v, v ref = 2.5 v internal reference, f core = 41.78 mhz, t a = ?40c to +125c, unless otherwise noted. table 1. parameter min typ max unit test conditions/comments adc channel specifications eight acquisition clocks and f adc /2 adc power - up time 5 s dc accuracy 1 , 2 resolutio n 12 b its integral nonlinearity 0.6 1.5 lsb 2.5 v internal reference 1.0 lsb 1.0 v external reference differential nonlinearity 3 , 4 0.5 +1/?0.9 lsb 2.5 v internal reference +0.7/?0.6 lsb 1.0 v external reference dc code distribution 1 lsb adc input is a dc voltage endpoint errors 5 offset error 1 2 lsb offset error match 1 lsb gain error 2 lsb gain error match 1 lsb dynamic performance f in = 10 khz sine wave, f sample = 1 msps signal - to - noise ratio (snr) 69 db includes distortion and noise components total harmonic distortion (thd) ?78 db peak harmonic or spurious noise ?75 db channel - to - channel crosstalk ?80 db measured on adjacent channels analog input input voltage ranges differential mode v cm v ref /2 6 v single - ended mode 0 to v ref v leakage current 1 6 a input capacitance 20 pf during adc acquisition on - chip voltage reference 0.47 f from v ref to agnd output voltage 2.5 v accuracy 4 mv t a = 25c reference temperature coefficient 15 ppm/c power supply rejection ratio 75 db output impedance 51 ? t a = 25c internal v ref power - on time 1 ms external reference input input voltage range 0.625 av dd v dac channel specifications dc accuracy 7 r l = 5 k?, c l = 100 pf resolution 12 b its relative accuracy 2 lsb differential nonlinearity 1 lsb guaranteed monotonic offset error 15 mv 2.5 v internal reference gain error 8 1 % gain error mismatch 0.1 % % of full scale on dac0 dc accuracy 9 r l = 1 k?, c l = 100 pf resolution 12 b its relative accuracy 2.5 lsb differential nonlinearity 1 lsb guaranteed monotonic offset error 15 mv 2.5 v internal reference gain error 10 1 % gain error mismatch 0.1 % % of full scale on dac0 analog outputs output voltage range 1 0 to 2.5 v v ref range: agn d to av dd output voltage range 2 0 to av dd v output impedance 2 ? rev. e
aduc7023 data sheet | page 6 of 96 parameter min typ max unit test conditions/comments d ac in op amp mode dac output buffer in op amp m ode input offset voltage 0.25 mv input offset voltage d rift 8 v/c input offset c urrent 0.3 na input bias current 0.4 na gain 80 db 5 k? load unity - gain frequency 5 mhz r l = 5 k?, c l = 100 pf cmrr 80 db settling t ime 10 s r l = 5 k?, c l = 100 pf output slew r ate 1.5 v/ s r l = 5 k?, c l = 100 pf psrr 75 db dac ac characteristics voltage output settling time 10 s digital - to - analog glitch energy 20 nv - sec 1 lsb change at major carry (where maximum number of bits simultaneously change in the dacxdat register) comparator input offset voltage 10 mv input bias current 1 a input voltage range agnd av dd C 1.2 v input capacitance 7 p f hysteresis 4 , 6 2 15 mv hysteresis can be turned on or off via the cmphyst bit in the cmpcon register response time 3 s 100 mv overdrive and configured with cmpres = 11 temperature sensor indicates die temperature voltage output at 25c 1.3 69 v voltage tc 4.42 mv/c accuracy with no calibration 3 c accuracy with one point calibration using contents of tempref register 1.5 c ja thermal impedance 40 - lead lfcsp 26 c/w 32 - lead lfcsp 32.5 c/w power supply monitor (psm) iov dd trip point selection 2.79 v one trip point power supply trip point accuracy 2 % of the selected nominal trip point voltage power - on reset 2.41 v watchdog timer (wdt) timeout period 0 512 sec flash/ee memory endurance 11 10,000 c ycles data retention 12 20 y ears t j = 85c digital inputs all digital inputs excluding xclki and xclko logic 1 input current 0 .2 1 a v ih = v dd or v ih = 5 v logic 0 input current ?40 ?60 a v il = 0 v; except tdi ?80 ?120 a v il = 0 v; tdi input capacitance 10 pf logic inputs 4 all logic inputs excluding xclki v inl , input low voltage 0.8 v v inh , input high volta ge 2.0 v logic outputs all digital outputs excluding xclko v oh , output high voltage 2.4 v i source = 1.6 m a v ol , output low voltage 13 0.4 v i sink = 1.6 ma crystal inputs xclki and xclko logic inputs, xclki only v inl , input low volt age 1.1 v v inh , input high voltage 1.7 v xclki input capacitance 20 pf xclko output capacitance 20 pf rev. e
data she et aduc7023 | page 7 of 96 parameter min typ max unit test conditions/comments internal oscillator 32.768 khz 3 % mcu clock rate from 32 khz internal oscillator 326 khz cd = 7 from 32 khz external crystal 41.78 mhz cd = 0 using an external clock 0.05 44 mhz t a = 85c 0.05 41.78 mhz t a = 125c start- up time core clock = 41.78 mhz at power - on 66 ms from pause/nap mode 24 ns cd = 0 3.07 s cd = 7 from sleep mode 1.58 ms from stop mode 1.7 ms programmable logic array (pla) pin propagation delay 12 ns from input pin to output pin element propagation delay 2.5 ns power requirements 14, 15 power supply voltage range av dd to agnd and iov dd to dgnd 2.7 3. 6 v analog power supply currents av dd current 200 a adc in idle mode digital power supply current iov dd current in normal mode code executing from flash/ee 8.5 10 ma cd = 7 11 15 ma cd = 3 28 35 ma cd = 0 (41.78 mhz clock) iov dd current in pause mode 14 20 ma cd = 0 (41.78 mhz clock) iov dd current in sleep mode 230 650 a t a = 125c additional power supply currents adc 1.4 ma at 1 msps 0.7 ma at 62.5 ksps dac 400 a p er dac esd tests 2.5 v ref erence, t a = 25c hbm passed 3 kv fic dm passed 1.0 kv 1 all adc channel specificatio ns are guaranteed during normal microcontroller core operation. 2 apply to all adc input channels. 3 measured using the factory - set default values in the adc offset register (adcof ) and gain coefficient register (adcgn) . 4 not production tested but supported by design and/or characterization data on production release. 5 measured using the factory - set default values in adcof and adcgn with an external ad845 op amp as an input buffer stage as shown in figure 28 . based on external adc system components, the user may need to execute a system calibration to remove external endpoint errors and achieve these spe cifications (see the calibration section). 6 the input si gnal can be centered on any dc common - mode voltage ( v cm ) as long as this value is within the adc voltage input range specified. 7 dac linearity is calculated using a reduced code range of 100 to 3995. 8 dac gain error is calculated using a reduced code ran ge of 100 to internal 2.5 v v ref . 9 dac linearity is calculated using a reduced code range of 100 to 3995. 10 dac gain error is calculated using a reduced code range of 100 to int ernal 2.5 v v ref . 11 endurance is qualified as per jedec standard 22 method a117 and measured at ?40c, +25c, +85c, and +125c. 12 retention lifetime equivalent at junction temperature (t j ) = 85c as per jedec standard 22 method a117. retention lifetime derates with junction temperature. 13 test carried out with a maximum of eight i/os set to a low output level. 14 power supply current consumption is measured in normal, pause, and sleep modes under the following conditions: normal mode wi th 3.6 v supply , pause m o de with 3.6 v s upply , and sleep mode with 3.6 v supply . 15 iov dd power supply current decreases typically by 2 ma during a flash/ee erase cycle. rev. e
aduc7023 data sheet | page 8 of 96 timing specifications table 2. i 2 c timing in fast mode (400 khz) slave master parameter description min max typ unit t l scl low pulse width 200 1360 ns t h scl high pulse width 100 1140 ns t shd start condition hold time 300 ns t dsu data setup time 100 740 ns t dhd data hold time 0 400 ns t rsu setup time for repeated start 100 ns t psu stop condition setup time 100 800 ns t buf bus-free time between a stop conditio n and a start condition 1.3 s t r rise time for both scl and sda 300 200 ns t f fall time for both scl and sda 300 ns table 3. i 2 c timing in standa rd mode (100 khz) slave parameter description min max unit t l scl low pulse width 4.7 s t h scl high pulse width 4.0 ns t shd start condition hold time 4.0 s t dsu data setup time 250 ns t dhd data hold time 0 3.45 s t rsu setup time for repeated start 4.7 s t psu stop condition setup time 4.0 s t buf bus-free time between a stop condit ion and a start condition 4.7 s t r rise time for both scl and sda 1 s t f fall time for both scl and sda 300 ns 08675-002 sda (i/o) msb lsb ack msb 1 9 8 2?7 1 ps s(r) t r t f t rsu t dsu t dsu t psu t buf t h t f t r t dhd t dhd t shd t sup t l t sup repeated start start condition stop condition scl (i) figure 2. i 2 c-compatible in terface timing rev. e
data sheet aduc7023 | page 9 of 96 table 4. spi master mode timing (phase mode = 1) parameter description min typ max unit t sl sclk low pulse width 1 (spidiv + 1) t uclk ns t sh sclk high pulse width 1 (spidiv + 1) t uclk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before sclk edge 1 1 t uclk ns t dhd data input hold time after sclk edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns 1 t uclk = 23.9 ns. it corresponds to the 41.78 mhz internal clock from the pll before the clock divider. 08675-003 mosi msb bit 6 to bit 1 lsb miso msb in bit 6 to bit 1 lsb in sclk (polarity = 0) sclk (polarity = 1) t sf t sr t sl t sh t dav t dsu t dhd t df t dr figure 3. spi master mode timing (phase mode = 1) rev. e
aduc7023 data sheet | page 10 of 96 table 5 . spi master mode timing (p hase mode = 0) parameter descript ion min typ max unit t sl sclk low pulse width 1 (spidiv + 1) t u clk ns t sh sclk high pulse width 1 (spidiv + 1) t u clk ns t dav data output valid after sclk edge 25 ns t dosu data output setup before sclk edge 75 ns t dsu data input setup time before scl k edge 1 1 t uclk ns t dhd data input hold time after scl k edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf scl k fall time 5 12.5 ns 1 t uclk = 23.9 ns . it corresponds to the 41.78 mhz internal clock from the pll before the clock divider. 08675-004 msb bit 6 to bit 1 lsb msb i n bit 6 to bit 1 lsb i n mosi miso sclk (pol ar ity = 0) sclk (pol ar ity = 1) t sf t sr t sl t dav t sh t df t dr t dosu t dsu t dhd figure 4 . spi master mode timing (p hase mode = 0) rev. e
data sheet aduc7023 | page 11 of 96 table 6 . spi slave mode timing (p hase mode = 1) parameter description min typ max unit t ss ss to sclk edge 200 ns t sl sclk low pulse width 1 (spidiv + 1) t u clk ns t sh sclk high pulse width 1 (spidiv + 1) t u clk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before scl k edge 1 1 t uclk ns t dhd data input hold time after scl k edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise tim e 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns t sfs ss high after scl k edge 0 ns 1 t uclk = 23.9 ns . i t corresponds to the 41.78 mhz internal clock from the pll before the clock divider . 08675-005 mosi miso sclk (pol ar ity = 0) sclk (pol ar ity = 1) t sf t s fs t sr t sl t dav t sh t df t dr t dsu t dhd ss msb bit 6 to bit 1 lsb msb i n bit 6 to bit 1 lsb i n t ss figure 5 . spi slave mode timing (p hase mode = 1) rev. e
aduc7023 data sheet | page 12 of 96 table 7 . spi slave mode timing (p hase mode = 0) parameter description min typ max unit t ss ss to sclk edge 200 ns t sl sclk low pulse width 1 (spidiv + 1) t u clk ns t sh sclk high pulse width 1 (spidi v + 1) t u clk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before scl k edge 1 1 t uclk ns t dhd data input hold time after scl k edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns t docs data output valid after ss edge 25 ns t sfs ss high after scl k edge 0 ns 1 t uclk = 23.9 ns . i t corresponds to the 41.78 mhz internal clock fr om the pll before the clock divider. 08675-006 msb i n bit 6 to bit 1 lsb i n msb bit 6 to bit 1 lsb mosi miso sclk (pol ar ity = 0) sclk (pol ar ity = 1) t sf t s fs t sr t sl t dav t sh t df t dr t dsu t docs t dhd ss t ss figure 6 . spi slave mode timing (p hase mode = 0) rev. e
data sheet aduc7023 | page 13 of 96 absolute maximum rat ings agnd = gnd ref , t a = 25c, unless otherwise noted. table 8 . 1 these limits apply to the p0.0, p0.1, p0.2, p0.3, p0.4, p0.5, p0. 6, p0.7, p1.0, p1.1, p1.6, and p1.7 pins . 2 these limits apply to the p1.2, p1.3, p1.4, p1.5, p2.0, p2.2, p2. 3, and p2.4 pins . stresses above t hose listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. only one absolute maximum rating can be applied at any one time. esd caution parameter rating av dd to iov dd ?0.3 v to +0.3 v agnd to dgnd ?0.3 v to +0.3 v iov dd to dgnd , av dd to agnd ?0.3 v to +6 v digital input voltage to dgnd 1 ?0.3 v to +5.3 v digital output voltage to dgnd 1 ?0.3 v to iov dd + 0.3 v shared analog/digital in puts to agnd 2 ?0.3 v to av dd + 0.3 v v ref to agnd ?0.3 v to av dd + 0.3 v analog inputs to agnd ?0.3 v to av dd + 0.3 v analog outputs to agnd ? 0.3 v to av dd + 0.3 v operating temperature range, industrial ? 40c to +125c storage temperature range ? 65 c to +150c junction temperature 150 c ja thermal impedance 40- lead lfcsp 26 c/w 32- lead lfcsp 32.5 c/w peak solder reflow temperature snpb assemblies (10 sec to 30 sec) 240c rohs compliant assemblies (20 sec to 40 sec) 260c rev. e
aduc7023 data sheet | page 14 of 96 pin configurations and function descriptions notes 1. exposed pad. the paddle needs to be soldered and either connected to agnd or left floating. 08675-048 1 av dd 2 gnd ref 3 dac0 4 dac1 5 dac2 6 dac3 7 p1.4/adc10/plao[3] 8 p2.0/adc12/pwm4/plai[7] 9 10 p0.5/sda0/plai[1]/comp out 23 rtck 24 tms 25 p0.0/ntrst/adc busy plai[8]/bm 26 p0.1/plai[9]/tdo 27 p0.2/plao[8]/tdi 28 p0.3/plao[9]/tck 29 p1.5/adc6/pwm tripinput /plao[4] 30 p2.2/adc7/sync/plao[6] 22 xclko 21 xclki 11 p0.6/miso/scl1/plai[2] 12 p0.7/mosi/sda 1/plao[0] 13 p1.0/spiclk/pwm0/plao[1] 15 p1.6/pwm2/scl1/plai[5] 17 d gnd 16 p1.7/pwm3/sda1/plai[6] 18 iov dd 19 lv dd 20 33 p1.2/adc4/irq2/plai[3]/ecl k 34 p1.3/adc5/irq3/plai[4] 35 v ref 36 adc0 37 adc1 38 adc2/cmp0 39 adc3/cmp1 40 agnd 32 p2.4/adc 9/plai[10] 31 p2.3/adc8/plao[7 ] aduc7023 top view (not to scale) rst 14 p1.1/ss/irq1/pwm1/plao[2]/ti p0.4/irq0/scl0/plai[0]/conv start figure 7. 40-lead lfcsp pin configuration 08675-007 av dd gnd ref dac0 dac1 dac2 dac3 p0.5/sda0/plai[1]/comp out p0.3/plao[9]/tck p0.2/plao[8]/tdi p0.1/plai[9]/tdo p0.0/ntrst/adc busy /plai[8]/bm tms rtck xclko xclki p0.6/miso/scl1/plai[2] p0.7/mosi/sda1/plao[0] p1.0/spi clk/pw m0/plao[1] dg nd iov dd lv dd agnd adc3/cmp1 adc2/cmp0 adc1 adc0 v ref p1.3/adc5/irq3/plai[4] p1.2/adc4/irq2/plai[3]/eclk rst 24 23 22 21 20 19 18 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 aduc7023 top view (not to scale) notes 1. exposed pad. the paddle needs to be soldered and either connected to agnd or left floating. p1.1/ss/irq1/pw m1/plao[2]/t1 p0.4/irq0/scl0/plai[0]/conv start figure 8. 32-lead lfcsp pin configuration aduc7023 top view (ball side down) not to scale 08675-109 1 a b c d e f a1 b1 c1 d1 e1 f1 a2 b2 c2 d2 e2 f2 a3 b3 c3 d3 e3 f3 a4 b4 c4 d4 e4 f4 a5 b5 c5 d5 e5 f5 a6 b6 c6 d6 e6 f6 234 ball a 1 corner 56 figure 9. 36-lead wlcsp pin configuration table 9. pin function descriptions pin no. 40- lfcsp 32- lfcsp 36- wlcsp mnemonic description 0 0 n/a exposed paddle exposed pad. the paddle needs to be soldered and either connected to agnd or left floating. 36 28 a4 adc0 single-ended or differential analog input 0. 37 29 b4 adc1 single-ended or differential analog input 1. 38 30 a5 adc2/cmp0 single-ended or differential analog input 2/comparator positive input. 39 31 b5 adc3/cmp1 single-ended or differential analog input 3/comparator negative input. 32 n/a b2 p2.4/adc9/plai[10] general-purpose input and output port 2.4/adc single-ended or dif- ferential analog input/programmable logic array input element 10. by default, this pin is configured as a digital input with a weak pull-up resistor enabled. rev. e
data sheet aduc7023 | page 15 of 96 pin no. 40- lfcsp 32- lfcsp 36- wlcsp mnemonic description 31 n/a a1 p2.3 / adc8/ pla o[7] general - purpose input and output port 2.3 / adc single - ende d or differential analog input 8/programmable logic array output element 7. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, pull - up resistor should be disabled manually. 30 n/a b1 p2.2 / adc7/sync/ pla o[6] general - purpose input and output port 2.2 / adc single - ende d or differential analog input 7/pwm sync/ programmable logic array output element 6. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, pull - up resistor should be disabled manually. 8 n/a e6 p2.0/adc12/pwm4/ plai[7] general - pur pose input and output port 2.0/ adc single - ended or differential analog input 12/pwm ou tput 4/programmable logic array input element 7. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as an adc input, it is not possible to disable the internal pull - up resister. this means that this pin ha s a higher leakage current value than other analog input pins. 2 2 c4 gnd ref ground voltage reference for the adc. for optimal performance, the analog power supply should be separated from dgnd. 3 3 c5 dac0 dac0 voltage output or adc i nput . 4 4 c6 dac1 dac1 voltage output or adc i nput . 5 5 d5 dac2 dac2 voltage output 6 6 d6 dac3 dac3 voltage output 24 20 d2 tms test mode select, jtag test port input. debug and download access. this pin has an internal pull - up resistor to iov dd . in some cases an exte rnal pull - up resistor is also required to ensure the part does not enter an erroneous state. 25 21 d1 p0.0/ntrst/adc busy /plai[8]/ bm this is a multifunction pin as follows: general - purpose input and output port 0.0. by default, this pin is configured as g pio. jtag reset input. debug and download access. if this pin is held low, jtag access is not possible because the jtag interface is held in reset and p0.1/p0.2/p0.3 are configured as gpio pins. adc busy signal. programmable logic array input element 8. bo ot mode entry pin. the aduc7023 enters i 2 c download mode if bm is low at reset with a flash address 0x80014 = 0xfffffffff. the aduc7023 executes code if bm is pulled high at reset or if bm is low at reset with a flash address 0x80014 not equal to 0xfffffff ff. 26 22 c1 p0.1/ plai[9]/tdo the default value of this pin depends on the level of p0.0/bm. if p0.0/ bm = 0, this pin defaults to a general purpose input. if p0.0/bm = 1, this pin defaults to a jtag test data output pin. this is a multifunction pin as follows: general - purpose input and output port 0.1 . programmable logic array input element 9. test data out, jtag test port output. debug and download access. when debugging the part via jtag, this pin must not be toggled by user code, and the gp0con/gp0da t register bits affecting this pin can not be changed. 27 23 c2 p0.2/plao[8]/tdi the default value of this pin depends on the level of p0.0/bm. if p0.0/ bm = 0, this pin defaults to a general purpose input. if p0.0/bm = 1, this pin defaults to a jtag tes t data input pin. this is a multifunction pin as follows: general - purpose input and output port 0.2. programmable logic array output element 8. test data in, jtag test port in put. debug and download access. when debugging the part via jtag, this pin must not be toggled by user code, and the gp0con/gp0dat register bits affecting this pin must not be changed. rev. e
aduc7023 data sheet | page 16 of 96 pin no. 40- lfcsp 32- lfcsp 36- wlcsp mnemonic description 28 24 c3 p0.3/plao[9]/tck the default value of this pin depends on the level of p0.0/bm. if p0.0/bm = 0, this pin defaults to a general purpose input. if p0.0/bm = 1, this pin defaults to a jtag test data clock pin. this is a multifunction pin as follows: general - purpose input and output port 0.3 . programmable logic array output element 9 . test clock, jtag test port c lock i nput. debug and download acces s. when debugging the part via jtag, this pin must not be toggled by user code and the gp0con/gp0dat register bits affecting this pin must not be changed. 17 13 e3 dgnd digital ground. 18 14 f3 iov dd 3.3 v supply for gpio and input of the on - chip voltage regulator. 19 15 d3 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to dgnd only. 20 16 f2 rst reset input, active low. 23 19 e1 rtck return jtag clock s ignal. this is not the s tandard jtag clock signal. it is an output signal from the jtag controller. if using a 20- lead jtag header, connect to p in 11. 9 7 f6 p0.4/irq0/scl0/plai[0]/conv ge neral - purpose input and output port 0.4/external interrupt request 0/ i 2 c0 clock s ignal /pr ogrammable l ogic array input element 0/adc external convert s tart. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 10 8 e5 p0.5/sda0/plai[1]/ comp out general - purpose input and output port 0.5/i 2 c0 data signal/ pr ogrammable logic array input element 1/ voltage comparator output. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 11 9 f5 p0.6/miso/scl1/plai[2] general - purpose input and output p ort 0.6/ spi miso signal /i 2 c1 clo ck on 32- lead and 36 - ball packages/programmable logic array input element 2. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 12 10 d4 p0.7/mosi/sda1/plao[0] general - purpose input and output port 0.7/ spi mosi si gnal /i 2 c1 d ata s ignal on 32 - lead and 36 - ball packages/programmable logic array output element 0. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 21 17 f1 xclki input to the crystal oscillator inverter and input to the internal clock generator circuits. connect to dgnd if unused. 22 18 e2 xclko output from the crystal oscillator inverter. leave unconnected if unused. 16 n/a n/a p1.7/pwm3/sda1/ plai[6] general - purpos e input and output port 1.7 / pwm o utput 3 /i 2 c1 d ata s ignal/programmable logic array i nput element 6 . by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 15 n/a n/a p1.6/pwm2/scl1/ plai[5] general - purpose input and output port 1.6 / pwm o utput 2 /i 2 c1 c lock s ignal/ pro grammable logic array i nput element 5 . by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 29 n/a n/a p1.5/adc6/pwm tripinput /plao[4] general - pur pose input and output port 1.5/ adc single - ended or differenti al analog input 6/pwm tripinput /programmable logic array o utput element 4 . by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, the pull - up resistor should be disabled manually. 7 n/a n/a p1.4/adc10/plao[3] general - pur pose input and output port 1.4/ adc single - ended o r dif - ferential analog input 10/programmable logic array output element 3. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, t he pull - up resistor should be disabled manually. rev. e
data sheet aduc7023 | page 17 of 96 pin no. 40- lfcsp 32- lfcsp 36- wlcsp mnemonic description 34 26 a3 p1.3/ adc5/irq3/plai[4] general - pur pose input and output port 1.3/ adc single - ended or differential analog input 5/ external interrupt request 3/ programmable logic array i nput element 4. by default , this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, the pull - up resistor should be disabled manually. 33 25 a2 p1.2/adc4/irq2/ plai [3]/ eclk/ general - purpo se input and output port 1.2 /adc single - ended or differential analog input 4 /external interrupt request 2/ programmable logic array input element 3/input - output for external clock. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. when used as adc input, the pul l- up resistor should be disabled manually. 14 12 f4 p1.1/ ss /irq1/pwm1/plao[2]/t1 general - purpose input and output port 1.1/spi interface slave select (active low)/external interrupt request 1 /pwm output 1/ programmable logic array output element 2/timer 1 input clock. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 13 11 e4 p1.0/sclk/pwm0/plao[1] general - pu rpose input and output port 1.0 /spi i nterfa ce clock s ignal/ pwm o utput 0 / programmable log ic array output element 1. by default, this pin is configured as a digital input with a weak pull - up resistor enabled. 35 27 b3 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. 40 32 a6 ag nd analog ground. ground reference point for the analog circuitry. 1 1 b6 av dd 3.3 v analog power. rev. e
aduc7023 data sheet | page 18 of 96 typical performance characteristics 0.5 0.6 0.4 0.3 0.2 0.1 0 ?0.1 ?0.2 ?0.3 ?0.4 0 500 1000 1500 2000 2500 3000 3500 4095 adc codes dnl (lsb) 08675-049 sampling rate = 950ksps worst case positive = 0.63, code = 2364 worst case negative = ?0.46, code = 2363 figure 10 . typical dnl, f adc = 950 k sps, internal r eference u sed 0.6 0.4 0.2 0 ?0.2 ?0.6 ?0.4 ?0.8 ?1.0 0 500 1000 1500 2000 2500 3000 3500 4095 adc codes inl (lsb) 08675-050 sampling rate = 950ksps worst case positive = 0.57, code = 4063 worst case negative = ?0.90, code = 3356 figure 11 . typical inl, f adc = 950 k sps, internal r eference u sed 0.6 0.5 0.4 0.3 0.2 0.1 ?0.1 0 ?0.2 ?0.3 ?0.4 ?0.5 ?0.6 0 500 1000 1500 2000 2500 3000 3500 4095 adc codes dnl (lsb) 08675-051 sampling rate = 950ksps worst case positive = 0.64, code = 3583 worst case negative = ?0.61, code = 1830 figure 12 . typical dnl, f adc = 950 k sps, external 1.0 v r eference u sed 1.2 1.0 0.8 0.6 0.4 0.2 ?0.2 0 ?0.4 ?0.6 ?0.8 ?1.0 0 500 1000 1500 2000 2500 3000 3500 4095 adc codes inl (lsb) 08675-052 sampling rate = 950ksps worst case positive = 1.09, code = 4032 worst case negative = ?0.98, code = 3422 figure 13 . typical inl, f adc = 950 k sps, external 1.0 v re ference u sed 20 0 ?20 ?40 ?60 ?80 ?100 ?200 ?400 0 20,000 40,000 60,000 80,000 104,400 frequency (hz) sinad, thd and phsn of adc (db) 08675-053 figure 14 . sinad, thd , and phsn of adc , internal 2.5 v reference used rev. e
data sheet aduc7023 | page 19 of 96 terminology adc specifications integral nonlinearity (inl) the maximum deviation of any code from a straight line passing through the end points of the adc transfer function. the endpoints of the transfer function are zero scale, a point ? lsb below the first code transition, and full scale, a point ? lsb above the last code transition. differential nonlinearity (dnl) the difference between the measured and the ideal 1 lsb change between any two adjacent codes in the adc. offset error the deviation of the first code transition (0000 . . . 000) to (0000 . . . 001) from the ideal, that is, +? lsb. gain error the deviation of the last code tran sition from the ideal ain voltage (full scale ? 1.5 lsb) after the offset error has been adjusted out. signal to (noise + distortion) ratio the measured ratio of signal to (noise + distortion) at the output of the adc. the signal is the rms amplitude of th e fundamental. noise is the rms sum of all nonfundamental signals up to half the sampling frequency (f s /2), excluding dc. the ratio is dependent upon the number of quantization levels in the digitization process; the more levels, the smaller the quantiza tion noise. the theoretical signal to (noise + distortion) ratio for an ideal n- bit converter with a sine wave input is given by signal to ( noise + distortion ) = (6.02 n + 1.76) db thus, for a 12 - bit converter, this is 74 db. total harmonic distortion the ratio of the rms sum of the harmonics to the fundamental. dac specifications relative accuracy otherwise known as endpoint linearity, relative accuracy is a measure of the maximum deviation from a straight line passing through the endpoints of the dac tra nsfer function. it is measured after adjusting for zero error and full - scale error. voltage output settling time the amount of time it takes the output to settle to within a 1 lsb level for a full - scale input change. rev. e
aduc7023 data sheet | page 20 of 96 overview of the arm7 tdmi core the ar m7? core is a 32 - bit reduced instruction set computer (risc). it uses a single 32 - bit bus for instruction and data. the length of the data can be 8 bits, 16 bits, or 32 bits. the length of the instruction word is 32 bits. the arm7tdmi is an arm7 core with four additional features : t support for the thumb (16 - bit) instruction set , d support for debug , m support for long multiplications , and i includes the embeddedice module to support embedded system debugging thumb mode (t) an arm instruction is 32 bits lon g. the arm7tdmi processor supports a second instruction set that has been compressed into 16 bits, called the t humb ? instruction set. faster execution from 16 - bit memory and greater code density can usually be achieved by using the t humb instruction set in stead of the arm instruction set, which makes the arm7tdmi core particularly suitable for embedded applications. however, the t humb mode has two limitations . thumb code typically requires more instructions for the same job. as a result, arm code is usually best for max imizing the performance of time critical code. also, t he t humb instruction set does not include some of the instructions needed for exception handling, which automatically switches the core to arm code for exception handling. see the arm7tdmi user guide for details on the core architecture, the programming model, and both the arm and arm t humb instruction sets. long multiply (m) the arm7tdmi instruction set includes four extra instruc - tions that perform 32 - bit by 32 - bit multiplication with a 6 4- bit result, and 32 - bit by 32 - bit multiplication - accumulation (mac) with a 64 - bit result. these results are achieved in fewer cycles than required on a standard arm7 core. e mbedded ice (i) embeddedice provides integrated on - chip support for the core. the e mbeddedice module contains the breakpoint and watch - point registers that allow code to be halted for debugging purposes. these registers are controlled through the jtag test port. when a breakpoint or watchpoint is encountered, the processor halts and ente rs debug state. once in a debug state, the processor registers can be inspected as well as the flash/ee, sram, and memory mapped registers. exceptions arm supports five types of exceptions and a privileged processing mode for each type. the five types of exceptions are: ? normal interrupt or irq. this is provided to service general - purpose interrupt handling of internal and external events. ? fast interrupt or fiq. this is provided to service data transfers or communication channels with low latency. fiq h as priority over irq. ? memory abort. ? attempted execution of an undefined instruction. ? software interrupt instruction (swi). this can be used to make a call to an operating system. typically, the programmer defines interrupt as irq, but for higher priority i nterrupt, that is, faster response time, the programmer can define interrupt as fiq. arm registers arm7tdmi has a total of 37 registers: 31 general - purpose registers and six status registers. each operating mode has dedicated banked registers. when writing user - level programs, 15 general - purpose 32 - bit registers (r0 to r14), the program counter (r15) , and the current program status register (cpsr) are usable. the remaining registers are only used for system - level programming and exception handling. when an exception occurs, some of the standard registers are replaced with registers specific to the exception mode. all excep - tion modes have replacement banked registers for the stack pointer (r13) and the link register (r14) as represented in figure 15 . the fast interrupt mode has more registers (r8 to r12) for fast interrupt processing. this means the interrupt processing can begin without the need to save or restore these registers, and thus save critical time in the interrupt han dling process. 08675-008 usable in user mode system modes only spsr_und spsr_irq spsr_abt spsr_svc r8_fiq r9_fiq r10_fiq r11_fiq r12_fiq r13_fiq r14_fiq r13_und r14_und r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 (pc) r13_irq r14_irq r13_abt r14_abt r13_svc r14_svc spsr_fiq cpsr user mode fiq mode svc mode abort mode irq mode undefined mode figure 15 . register organization rev. e
data sheet aduc7023 | page 21 of 96 more information relative to the model of the programmer and the arm7tdmi core architecture can be found in arm7tdmi technical and arm architecture manuals available directly from a rm ltd. interrupt latency the worst - case latency for a fast interrupt request (fiq) consists of the following: t he longest time the request can take to pass through the synchronizer , t he time for the longest instruction to complete (the longest instruction is an ldm) that loads all the registers including the pc , and t he time for the data abort and fiq entry . at the end of this time, the arm7tdmi executes the instruc - tion at 0x1c (fiq interrupt vector address). the maximum total time is 50 processor cycles, which is just under 1.2 s in a system using a continuous 41.78 mhz processor clock. the maximum interrupt request (irq) latency calculation is similar but must allow for the fact that fiq has higher priority and could delay entry into the irq handling ro utine for an arbitrary length of time. this time can be reduced to 42 cycles if the ldm command is not used. some compilers have an option to compile without using this command. another option is to run the part in thumb mode where the time is reduced to 2 2 cycles. the minimum latency for fiq or irq interrupts is a total of five cycles, which consist of the shortest time the request can take through the synchronizer, plus the time to enter the exception mode. t he arm7tdmi always runs in arm (32 - bit) mode wh en in privileged modes, for example, when executing interrupt service routines. rev. e
aduc7023 data sheet | page 22 of 96 memory organization the aduc7023 incorporates two separate blocks of memory: 8 kb of sram and 64 kb of on-chip flash/ee memory; 62 kb of on-chip flash/ee memory is available to the user, and the remaining 2 kb are reserved for the factory configured boot page. these two blocks are mapped as shown in figure 16. reserved mmrs 0xffffffff 0x0008ffff 0x00011fff 0x0000ffff 0x00000000 0x00010000 0x00080000 0xffff0000 reserved flash/ee (flash/ee or sram) remappable memory space sram 08675-009 figure 16. physical memory map by default, after a reset, the flash/ee memory is mirrored at address 0x00000000. it is possible to remap the sram at address 0x00000000 by clearing bit 0 of the remap mmr. this remap function is described in more detail in the flash/ee memory section. memory access the arm7 core sees memory as a linear array of the 2 32 byte location where the different blocks of memory are mapped as outlined in figure 16. the aduc7023 memory organizations are configured in little endian format, which means that the least significant byte is located in the lowest byte address, and the most significant byte is in the highest byte address. 0 8675-010 bit 31 byte 2 a 6 2 . . . byte 3 b 7 3 . . . byte 1 9 5 1 . . . byte 0 8 4 0 . . . bit 0 32 bits 0xffffffff 0x00000004 0x00000000 figure 17. little endian format flash/ee memory the total 64 kb of flash/ee memory is organized as 32k 16 bits; 31k 16 bits is user space and 1 k 16 bits is reserved for the on-chip kernel. the page size of th is flash/ee memory is 512 bytes. 62 kilobytes of flash/ee memory are available to the user as code and nonvolatile data memory. there is no distinction between data and program because arm code shares the same space. the real width of the flash/ee memory is 16 bits, which means that in arm mode (32-bit instruction), two accesses to the flash/ee are necessary for each instruction fetch. it is, therefore, recommended to use thumb mode when executing from flash/ee memory for optimum access speed. the maximum access speed for the flash/ee memory is 41.78 mhz in thumb mode and 20.89 mhz in full arm mode. more details about flash/ee access time are outlined later in the execution time from sram and flash/ee section. sram eight kilobytes of sram are available to the user, organized as 2k 32 bits, that is, two words. arm code can run directly from sram at 41.78 mhz, given that the sram array is configured as a 32-bit wide memory array. more details about sram access time are outlined later in the execution time from sram and flash/ee section. memory mapped registers the memory mapped register (mmr) space is mapped into the upper two pages of the memory array and accessed by indirect addressing through the arm7 banked registers. the mmr space provides an interface between the cpu and all on-chip peripherals. all registers, except the core registers, reside in the mmr area. all shaded locations shown in figure 18 are unoccupied or reserved locations and should not be accessed by user software. table 10 to table 23 show the full mmr memory map. the access time for reading from or writing to an mmr depends on the advanced microcontroller bus architecture (amba) bus used to access the peripheral. the processor has two amba buses: advanced high performance bus (ahb) used for system modules and advanced peripheral bus (apb) used for lower performance peripheral. access to the ahb is one cycle, and access to the apb is two cycles. all peripherals on the aduc7023 are on the apb except the flash/ee memory and the gpios. rev. e
data sheet aduc7023 | page 23 of 96 flash control interface gpio pla spi i 2 c1 i 2 c0 dac adc band gap reference power supply monitor pll and oscillator control watchdog timer general-purpose timer timer0 remap and system control interrupt controller 0xfffffff f 0xfffff820 0xfffff800 0xfffff46c 0xfffff400 0xffff0fbf 0xffff0f80 0xffff0b54 0xffff0b00 0xffff0a14 0xffff0a00 0xffff0948 0xffff0900 0xffff0848 0xffff0800 0xffff0620 0xffff0600 0xffff0538 0xffff0500 0xffff0490 0xffff048c 0xffff0448 0xffff0440 0xffff0420 0xffff0404 0xffff0370 0xffff0360 0xffff0334 0xffff0320 0xffff0310 0xffff0300 0xffff0238 0xffff0220 0xffff0140 0xffff0000 08675-011 pwm figure 18. memory mapped registers rev. e
aduc7023 data sheet | page 24 of 96 table 10. irq address base = 0xffff0000 address name byte access type default value description 0x0000 irqsta 4 r 0x00000000 active irq source. 0x0004 irqsig 4 r current state of all irq sources (enabled and disabled). 0x0008 irqen 4 r/w 0x00000000 enabled irq sources. 0x000c irqclr 4 w mmr to disable irq sources. 0x0010 swicfg 4 w software interrupt configuration mmr. 0x0014 irqbase 4 r/w 0x00000000 base address of all vectors. points to start of a 64-byte memory block which can contain up to 32 pointers to separate subroutine handlers. 0x001c irqvec 4 r 0x00000000 this register contains the subroutine address for the currently active irq source. 0x0020 irqp0 4 r/w 0x00000000 this register contains the interrupt pr iority setting for interrupt source 1 to interrupt source 7. an interrupt can have a priority setting of 0 to 7. 0x0024 irqp1 4 r/w 0x00000000 this register contains the interrupt pr iority setting for interrupt source 8 to interrupt source 15. 0x0028 irqp2 4 r/w 0x00000000 this register contains the interrupt priority setting for interrupt source 16 to interrupt source 21. 0x002c reserve d 4 r/w 0x00000000 reserved. 0x0030 irqconn 4 r/w 0x00000000 used to enable irq and fiq interrupt nesting. 0x0034 irqcone 4 r/w 0x00000000 this register configures the external interrupt sources as rising edge, falling edge, or level triggered. 0x0038 irqclre 4 r/w 0x00000000 used to clear an edge level triggered interrupt source. 0x003c irqstan 4 r/w 0x00000000 this register indicates the priority level of an interrupt that has just caused an interrupt exception. 0x0100 fiqsta 4 r 0x00000000 active fiq source. 0x0104 fiqsig 4 r current state of all fiq sources (enabled and disabled). 0x0108 fiqen 4 r/w 0x00000000 enabled fiq sources. 0x010c fiqclr 4 w mmr to disable fiq sources. 0x011c fiqvec 4 r 0x00000000 fiq interrupt vector. 0x013c fiqstan 4 rw 0x00000000 this register indicates the priority level of an fiq that has just caused an fiq exception. table 11. system control address base = 0xffff0200 address name byte access type default value 1 description 0x0220 remap 2 1 r/w 0x00 remap control register. 0x0230 rststa 1 r/w 0x01 rststa status mmr. 0x0234 rstclr 1 w 0x00 rstclr mmr for clearing rststa register. 0x0248 rstkey1 1 w 0xxx 0x76 should be written to this register before writing to rstcfg. 0x024c rstcfg 1 r/w 0x00 this register allows the dac and gpio outputs to retain state after a watchdog or software reset. 0x0250 rstkey2 1 w 0xxx 0xb1 should be written to this register after writing to rstcfg. 1 n/a means not applicable. 2 updated by kernel. rev. e
data sheet aduc7023 | page 25 of 96 table 12 . timer address base = 0xffff0300 address name b yte acc ess type default value 1 description 0x030 0 t0ld 2 r/w 0x0000 timer0 l oad r egister. 0x030 4 t0val 2 r 0xffff timer0 v alue r egister. 0x030 8 t0con 2 r/w 0x0 0 00 timer0 c ontrol mmr. 0x030 c t0clri 1 w 0xxx timer0 i nterrupt c lear r egister. 0x03 20 t1ld 4 r/w 0x00000000 timer1 l oad r egister. 0x032 4 t1val 4 r 0xffffffff timer1 v alue r egister 0x032 8 t1con 4 r/w 0x00000000 timer1 c ontrol mmr. 0x032 c t1clri 1 w 0xxx timer1 i nterrupt c lear r egister . 0x033 0 t1 cap 4 r 0x00000000 timer1 c apture r egister. 0x0 360 t2ld 2 r / w 0x0000 timer2 l oad r egister. 0x0364 t2val 2 r 0xffff timer2 v alue r egister. 0x0368 t2con 2 r/w 0 x0000 timer2 c ontrol mmr. 0x036c t2clri 1 w 0xxx timer2 i nterrupt c lear r egister. 1 n/a means not applicable. table 13 . pll /psm base addre ss = 0xffff0400 address name byte access type default value 1 description 0x0404 powkey1 2 w 0xxxxx powcon 0 p rewrite k ey . 0x0408 powcon0 1 r/w 0x00 power c ontrol and c ore s peed c ontrol r egister. 0x040c powkey2 2 w 0xxxxx powcon 0 p ostwrite k ey. 0x0410 p llkey1 2 w 0xxxxx pllcon p rewrite k ey. 0x0414 pllcon 1 r/w 0x21 pll c lock s ource s election mmr. 0x0418 pllkey2 2 w 0xxxxx pllcon p ostwrite k ey. 0x04 34 powkey 3 2 w 0xxxxx powcon 1 p rewrite k ey . 0x04 38 powcon 1 2 r/w 0x0004 power c ontrol and c ore s peed c ontrol r egister. 0x04 3c powkey 4 2 w 0xxxxx powcon 1 p ostwrite k ey. 0x0440 psmcon 2 r/w 0x0008 power s upply m onitor control register . 0x0444 cmpcon 2 r/w 0x0000 comparator control register . 1 n/a means not applicable. table 14. reference base address = 0xffff04 80 address : 0x048c name : refcon byte : 1 access t ype : read/write d efault v alue : 0x00 description : reference control register. table 15 . adc address base = 0xffff0500 address name byte access type default value descrip tion 0x0500 adccon 2 r/w 0x0600 adc control mmr. 0x0504 adccp 1 r/w 0x00 adc positive channel selection register . 0x0508 adccn 1 r/w 0x01 adc negative channel selection register . 0x050c adcsta 1 r 0x00 adc s tatus mmr. 0x0510 adcdat 4 r 0x00000000 adc d ata output mmr. 0x0514 adcrst 1 r/w 0x00 adc reset mmr. rev. e
aduc7023 data sheet | page 26 of 96 address name byte access type default value descrip tion 0x0530 adcgn 2 r/w factory configured adc gain calibration mmr. 0x0534 adcof 2 r/w factory configured adc offset calibration mmr. 0x0544 tscon 1 r/w 0x00 temperature sensor chopping enable r egister . 0x0548 tempref 2 r/w factory configured temperature sensor reference value. table 16 . dac address base = 0xffff0 6 00 address name byte access type default value description 0x0600 dac0con 1 r/w 0x00 dac0 control mmr. 0x0604 dac0dat 4 r/w 0x00000000 dac0 data mmr. 0x0608 dac1con 1 r/w 0x00 dac1 control mmr. 0x060c dac1dat 4 r/w 0x00000000 dac1 data mmr. 0x0610 dac2con 1 r/w 0x00 dac2 control mmr. 0x0614 dac2dat 4 r/w 0x00000000 dac2 data mmr. 0x0618 dac3con 1 r/w 0x00 dac3 control mmr. 0x061c dac3dat 4 r/w 0x00000000 dac3 data mmr. 0x0654 dacbcfg 1 r/w 0x00 dac configuration mmr 0x0650 dacbkey0 2 w 0x0000 dac key0 mmr 0x0658 dacbkey1 2 w 0x0000 dac key1 mmr table 17. i 2 c0 base a ddress = 0xffff0 8 00 address name byte access type default value description 0x0 8 00 i2c 0 mcon 2 r/w 0x0000 i 2 c0 m aster c ontrol register. 0x0 8 04 i2c 0 msta 2 r 0x0000 i 2 c 0 master s tatus register. 0x0 8 08 i2c 0 mrx 1 r 0x00 i 2 c0 master r eceive register. 0x0 8 0c i2c 0 mtx 1 w 0x00 i 2 c0 master t ransmit register. 0x0 8 10 i2c 0 mcnt0 2 r/w 0x0000 i 2 c0 master r ead c ount register. write the number of required bytes into this register prior to reading from a slave device. 0x0 8 14 i2c 0 mcnt1 1 r 0x00 i 2 c0 master c urrent r ea d count register. this register contains the number of bytes already received during a read from slave sequence. 0x0 8 18 i2c 0 adr0 1 r/w 0x00 i 2 c0 a ddress byte register. write the required slave address in here prior to communications. 0x081c i2c 0 adr1 1 r/ w 0x00 i 2 c0 a ddress byte register. write the required slave address in here prior to communications. u sed in 10 - bit mode only . 0x08 24 i2c 0 div 2 r/w 0x1f1f i 2 c0 clock control register. used to configure the scl frequency. 0x0 8 28 i2c 0 scon 2 r/w 0x0000 i 2 c 0 slave c ontrol register. 0x0 8 2c i2c 0ssta 2 r/w 0x0000 i 2 c0 slave s tatus register. 0x0 8 30 i2c 0 srx 1 r 0x00 i 2 c0 slave r eceive register. 0x0834 i2c 0stx 1 w 0x00 i 2 c0 slave t ransmit register. 0x0 8 38 i2c 0 a lt 1 r/w 0x00 i 2 c0 h ardware g eneral c all recogniti on register. 0x083c i2c 0 id0 1 r/w 0x00 i 2 c0 s lave id0 register. slave bus id register . 0x0 8 40 i2c 0 id1 1 r/w 0x00 i 2 c0 s lave id1 register. slave bus id register . 0x0 8 44 i2c 0 id2 1 r/w 0x00 i 2 c0 s lave id2 register. slave bus id register . 0x0848 i2c 0 id3 1 r/w 0x00 i 2 c0 s lave id3 register. slave bus id register . 0x0 8 4c i2c 0 fsta 2 r/w 0x0000 i 2 c0 fifo s tatus register. used in both master and slave modes . table 18. i 2 c1 base address = 0xffff0 9 00 address name byte access type default value description 0x0900 i2c 1 mcon 2 r/w 0x0000 i 2 c1 m aster c ontrol register. 0x0904 i2c 1 msta 2 r 0x0000 i 2 c1 master s tatus register. 0x0908 i2c 1 mrx 1 r 0x00 i 2 c1 master r eceive register. 0x090c i2c 1 mtx 1 w 0x00 i 2 c1 master t ransmit register. 0x0910 i2c 1 mcnt0 2 r/w 0x0000 i 2 c1 master r ead c ount register. write the number of required bytes into this register prior to reading from a slave device. rev. e
data sheet aduc7023 | page 27 of 96 address name byte access type default value description 0x0914 i2c 1 mcnt1 1 r 0x00 i 2 c1 master c urrent r ead count register. this register contains the number of by tes already received during a read from slave sequence. 0x0918 i2c 1 adr0 1 r/w 0x00 i 2 c1 a ddress byte register. write the required slave address in here prior to communications. 0x091c i2c 1 adr1 1 r/w 0x00 i 2 c 1 a ddress byte register. write the required sla ve address in here prior to communications. u sed in 10 - bit mode only. 0x0924 i2c 1 div 2 r/w 0x1f1f i 2 c1 clock control register. used to configure the scl frequency . 0x0928 i2c 1 scon 2 r/w 0x0000 i 2 c1 slave c ontrol register. 0x092c i2c 1ssta 2 r/w 0x0000 i 2 c1 slave s tatus register. 0x0930 i2c 1 srx 1 r 0x00 i 2 c1 slave r eceive register. 0x0934 i2c 1stx 1 w 0x00 i 2 c1 slave t ransmit register. 0x0938 i2c 1 a lt 1 r/w 0x00 i 2 c1 h ardware g eneral c all recognition register. 0x093c i2c 1 id0 1 r/w 0x00 i 2 c1 s lave id0 re gister. slave bus id register . 0x0940 i2c 1 id1 1 r/w 0x00 i 2 c1 s lave id1 register. slave bus id register . 0x0944 i2c 1 id2 1 r/w 0x00 i 2 c1 s lave id2 register. slave bus id register . 0x0948 i2c 1 id3 1 r/w 0x00 i 2 c1 s lave id3 register. slave bus id register . 0x094c i2c 1 fsta 2 r/w 0x0000 i 2 c1 fifo s tatus register. used in both master and slave modes . table 19 . spi base address = 0xffff0a00 address name byte access type default value description 0x0a00 spista 2 r 0x0000 spi s tatus mm r. 0x0a04 spirx 1 r 0x00 spi r eceive mmr. 0x0a08 spitx 1 w 0xxx spi t ransmit mmr. 0x0a0c spidiv 1 r/w 0x00 spi b aud r ate s elect mmr. 0x0a10 spicon 2 r / w 0x00 00 spi c ontrol mmr. table 20. pla base address = 0xffff0 b 00 addr ess name byte access type default value description 0x0b00 plaelm0 2 r/w 0x0000 pla e lement 0 c ontrol register. 0x0b04 plaelm1 2 r/w 0x0000 pla e lement 1 c ontrol register . 0x0b08 plaelm2 2 r/w 0x0000 pla e lement 2 c ontrol register . 0x0b0c plaelm3 2 r/w 0x0000 pla e lement 3 c ontrol register . 0x0b10 plaelm4 2 r/w 0x0000 pla e lement 4 c ontrol register . 0x0b14 plaelm5 2 r/w 0x0000 pla e lement 5 c ontrol register . 0x0b18 plaelm6 2 r/w 0x0000 pla e lement 6 c ontrol register . 0x0b1c plaelm7 2 r/w 0x0000 pla e lement 7 c ontrol register . 0x0b2 0 plaelm8 2 r/w 0x0000 pla e lement 8 c ontrol register. 0x0b2 4 plaelm9 2 r/w 0x0000 pla e lement 9 c ontrol register . 0x0b2 8 plaelm10 2 r/w 0x0000 pla e lement 10 c ontrol register . 0x0b2 c plaelm11 2 r/w 0x0000 pla e lement 1 1 c ontrol register . 0x0b 30 plaelm12 2 r/w 0x0000 pla e lement 12 c ontrol register . 0x0b3 4 plaelm13 2 r/w 0x0000 pla e lement 13 c ontrol register . 0x0b3 8 plaelm14 2 r/w 0x0000 pla e lement 14 co ntrol register . 0x0b3 c plaelm15 2 r/w 0x0000 pla e lement 15 co ntrol register . 0x0b40 placlk 1 r/w 0x00 pla clock select register . 0x0b44 plairq 4 r/w 0x00000000 pla interrupt control register . 0x0b48 plaadc 4 r/w 0x00000000 pla adc trigger control register . 0x0b4c pladin 4 r/w 0x00000000 pla data in register . 0x0b50 pladout 4 r 0x00000000 pla data out register . 0x0b54 plalck 1 w 0x00 pla lock register . rev. e
aduc7023 data sheet | page 28 of 96 table 21 . pwm base address = 0xffff 0f8 0 address name byte access type default value description 0x0f8 0 pwmcon 1 2 r/w 0x0012 pwm c ontrol r egister 1 . see the pulse - width modulator section for full details. 0x0f8 4 pwm0com0 2 r/w 0x0000 compare r egister 0 for pwm output 0 and pwm output 1. 0x0f8 8 pwm0com1 2 r/w 0x0000 compare r egister 1 for pwm output 0 and pwm o utput 1. 0x0f8 c pwm0com2 2 r/w 0x0000 compare r egister 2 for pwm output 0 and pwm output 1. 0x0f9 0 pwm0len 2 r/w 0x0000 frequency c ontrol for pwm output 0 and pwm output 1. 0x0f9 4 pwm1com0 2 r/w 0x0000 compare register 0 for pwm output 2 and pwm output 3. 0x0f9 8 pwm1com1 2 r/w 0x0000 compare register 1 for pwm output 2 and pwm output 3. 0x0f9 c pwm1com2 2 r/w 0x0000 compare register 2 for pwm output 2 and pwm output 3. 0x 0fa 0 pwm1len 2 r/w 0x0000 frequency c ontrol for pwm output 2 and pwm output 3. 0x 0fa 4 pwm2com0 2 r/w 0x0000 compare register 0 for pwm output 4 and pwm output 5. 0x 0fa 8 pwm2com1 2 r/w 0x0000 compare register 1 for pwm output 4 and pwm output 5. 0x0fb 8 pwmclri 2 w 0x0000 pwm i nterrupt c lear r egister. writing any value to this register clear s a pwm interrupt source. table 22 . gpio base address = 0xffff f4 00 address name byte access type default value description 0xf400 gp0con 4 r/w 0x00001111 gpio port0 c ontrol mmr. 0xf404 gp1con 4 r / w 0x00000000 gpio port1 c ontrol mmr. 0xf408 gp2con 4 r/w 0x00000000 gpio port2 c ontrol mmr. 0xf420 gp0dat 4 r/w 0x000000xx gpio port0 d ata c ontrol mmr. 0xf424 gp0set 4 w 0x000000 xx gpio port0 d ata s et mmr. 0xf428 gp0clr 4 w 0x000000 xx gpio port0 d ata c lear mmr. 0xf42c g p0par 4 r/ w 0x22220000 gpio port0 p ull -u p d isable mmr. 0xf430 gp1dat 4 r/w 0x000000 xx gpio port1 d ata c ontrol mmr. 0xf434 gp1set 4 w 0x000000 xx gpio port1 d ata s et mmr. 0xf43 8 gp1clr 4 w 0x000000 xx gpio port1 d ata c lear mmr. 0xf43 c gp1par 4 r/ w 0x 22 000022 gpio port1 p ull -u p d isable mmr. 0xf440 gp2dat 4 r/w 0x000000 xx gpio port2 d ata c ontrol mmr. 0xf4 44 gp2set 4 w 0x000000 xx gpio port2 data s et mmr. 0xf44 8 gp2clr 4 w 0x000000 xx gpio port2 d ata c lear mmr. 0xf44 c gp2par 4 r/ w 0x00000000 gpio po rt2 p ull - up d isable mmr. table 23 . flash/ee base address = 0xffff f8 00 address name byte access type default value description 0xf800 feesta 1 r 0x20 flash/ee s tatus mmr. 0xf804 feemod 2 r/w 0x0000 flash/ee c ontrol mmr. 0xf808 feecon 1 r/w 0x07 flash/ee c ontrol mmr. 0xf80c feedat 2 r/w 0xxxxx flash/ee d ata mmr. 0xf810 feeadr 2 r/w 0x0000 flash/ee a ddress mmr. 0xf818 feesign 3 r 0xffffff flash/ee lfsr mmr. 0xf81c feepro 4 r/w 0x00000000 flash/ee p rotection mmr. 0xf820 feehide 4 r/w 0xffffffff flash/ee p rotection mmr. rev. e
data sheet aduc7023 | page 29 of 96 adc circuit overview the analog-to-digital converter (adc) incorporates a fast, multichannel, 12-bit adc. it can operate from 2.7 v to 3.6 v supplies and is capable of providing a throughput of up to 1 msps when the clock source is 41.78 mhz. this block provides the user with a multichannel multiplexer, a differential track-and-hold, an on-chip reference, and an adc. the adc consists of a 12-bit successive approximation converter based around two capacitor dacs. depending on the input signal configuration, the adc can operate in one of two different modes: fully differential mode (for small and balanced signals) or single-ended mode (for any single-ended signals). the converter accepts an analog input range of 0 v to v ref when operating in single-ended mode. in fully differential mode, the input signal must be balanced around a common-mode voltage (v cm ) in the 0 v to av dd range with a maximum amplitude of 2 v ref (see figure 19). 08675-012 av dd v cm v cm v cm 0 2v ref 2v ref 2v ref figure 19. examples of balanced signals in fully differential mode a high precision, low drift, factory calibrated, 2.5 v reference is provided on chip. an external reference can also be connected as described later in the band gap reference section. single or continuous conversion modes can be initiated in the software. an external conv start pin, an output generated from the on-chip pla, or a timer0 or timer1 overflow can also be used to generate a repetitive trigger for adc conversions. a voltage output from an on-chip band gap reference propor- tional to absolute temperature can also be routed through the front-end adc multiplexer. this temperature channel can be selected as an adc input. this facilitates an internal temperature sensor channel that measures die temperature. transfer function single-ended mode in single-ended mode, the input range is 0 v to v ref . the output coding is straight binary in single-ended mode with 1 lsb = fs /4096, or 2.5 v/4096 = 0.61 mv, or 610 v when v ref = 2.5 v the ideal code transitions occur midway between successive integer lsb values (that is, 1/2 lsb, 3/2 lsb, 5/2 lsb, , fs ? 3/2 lsb). the ideal input/output transfer characteristic is shown in figure 20. 08675-013 output code voltage input 1111 1111 1111 1111 1111 1110 1111 1111 1101 1111 1111 1100 0000 0000 0011 1lsb0v +fs ? 1lsb 0000 0000 0010 0000 0000 0001 0000 0000 0000 1lsb = fs 4096 figure 20. adc transfer function in single-ended mode fully differential mode the amplitude of the differential signal is the difference between the signals applied to the v in+ and v inC pins (that is, v in+ ? v in? ). the maximum amplitude of the differential signal is, therefore, ?v ref to +v ref p-p (that is, 2 v ref ). this is regardless of the common mode (cm). the common mode is the average of the two signals, for example, (v in+ + v inC )/2, and is, therefore, the voltage on which the two inputs are centered. this results in the span of each input being cm v ref /2. this voltage has to be set up externally, and its range varies with v ref (see the driving the analog inputs section). the output coding is twos complement in fully differential mode with 1 lsb = 2 v ref /4096 or 2 2.5 v/4096 = 1.22 mv when v ref = 2.5 v. the output result is 11 bits, but this is shifted by one to the right. this allows the result in the adcdat mmr to be declared as a signed integer when writing c code. the designed code transitions occur midway between successive integer lsb values (that is, 1/2 lsb, 3/2 lsb, 5/2 lsb, , fs ? 3/2 lsb). the ideal input/output transfer characteristic is shown in figure 21. 08675-014 output code voltage input (v in + ? v in ?) 0 1111 1111 1110 0 1111 1111 1100 0 1111 1111 1010 0 0000 0000 0010 0 0000 0000 0000 1 1111 1111 1110 1 0000 0000 0100 1 0000 0000 0010 1 0000 0000 0000 ?v ref + 1lsb +v ref ? 1lsb 0lsb 1lsb = 2 v ref 4096 sign bit figure 21. adc transfer function in differential mode rev. e
aduc7023 data sheet | page 30 of 96 typical operation when configured via the adc control and channel selection registers, the adc converts the analog input and provides a 12-bit result in the adc data register. the top four bits are the sign bits. the 12-bit result is placed from bit 16 to bit 27 as shown in figure 22. note that in fully differential mode, the result is represented in twos complement format. in single-ended mode, the result is represented in straight binary format. 08675-015 sign bits 12-bit adc result 31 27 16 15 0 figure 22. adc result format the same format is used in dacxdat, simplifying the software. current consumption the adc in standby mode, that is, powered up but not converting, typically consumes 640 a. the internal reference adds 140 a. during conversion, the extra current is 0.3 a multiplied by the sampling frequency (in khz). timing figure 23 gives details of the adc timing. users control the adc clock speed and the number of acquisition clocks in the adccon mmr. by default, the acquisition time is eight clocks, and the clock divider is two. the number of extra clocks (such as bit trial or write) is set to 19, which gives a sampling rate of 774 ksps. for conversion on the temperature sensor, set adccon = 0x37a3. when using multiple channels including the temperature sensor, the timing settings revert to the user- defined settings after reading the temperature sensor channel. 08675-016 adc clock a cq bit trial data adcsta = 0 adcsta = 1 adc interrupt write conv start adc busy adcdat figure 23. adc timing mmr interface the adc is controlled and configured via the eight mmrs described in this section. adccon register name: adccon address: 0xffff0500 default value: 0x0600 access: read/write function: adccon is an adc control register that allows the programmer to enable the adc peripheral, select the mode of operation of the adc (either in single- ended mode or fully differential mode), and select the conversion type. this mmr is described in table 24. table 24. adccon mmr bit designations bit value description 15 to 14 reserved. 13 temperature sensor conversion enable. set to 1 for temperature sensor conversions and single software conversions. set to 0 for normal adc conversions. 12 to 10 adc clock speed. 000 f adc /1. this divider is provided to obtain 1 msps adc with an external clock <41.78 mhz. 001 f adc /2 (default value). 010 f adc /4. 011 f adc /8. 100 f adc /16. 101 f adc /32. 9 to 8 adc acquisition time. 00 2 clocks. 01 4 clocks. 10 8 clocks (default value). 11 16 clocks. rev. e
data sheet aduc7023 | page 31 of 96 bit value description 7 enable start conversion. this b it is set by the user to start any type of conversion command. this bit is cleared by the user to disable a start conversion (clearing this bit does not stop the adc when continuously converting). 6 reserved 5 adc power control. this bit is s et by the user to place the adc in normal mode (the adc must be powered up for at least 5 s before it converts correctly). this bit is cleared by the user to place the adc in power - down mode. 4 to 3 conversion mode. 00 single - ended mode. 01 differential mode. 10 reserved . 11 reserved. 2 to 0 conversion type. 000 enable conv start pin as a conversion input. 001 enable timer 1 as a conversion input. 010 enable timer 0 as a conversion input. 011 single software conversion. this bit is set to 000 after conversion ( note that bit 13 of the adccon mmr should be se t before starting a single software conversion to avoid further conversions triggered by the conv start pin). 100 continuous software conversion. 101 pla conversion. other reserved. adccp register name : adccp address : 0xffff0504 default v alue : 0x00 access : read/write function: adccp is an adc positive channel selection register. this mmr is described in table 25. table 25 . adccp mmr bit designation bit value description 7 to 5 reserved. 4 to 0 positive channel selection bits. 00000 adc0. 00001 adc1. 00010 adc2. 00011 adc3. 00100 adc4 1 . 00101 adc5 1 . 00110 adc6 1 . 00111 adc7 1 . 01000 adc8 1 . 01001 adc9 1 . 01010 adc10 1 . 01011 reserved. 01100 adc12 1 . 01101 reserved 01110 dac0 01111 dac1 10000 temperature sensor. 10001 agnd (self - diagnostic feature). 10010 internal reference (self - diagnostic feature). 10011 av dd /2. others reserved. 1 when a selected adc channel is shared with one gpio, b y default, this pin is configured with a weak pull - up resistor enabled. the pull - up resistor should be disabled manually in the appropriate gpxpar register . note the internal pull - up resistor on p2.0/ain12 for 40 - lead pac ka ge cannot be disabled. rev. e
aduc7023 data sheet | page 32 of 96 adccn re gister name : adccn address : 0xffff0508 default v alue : 0x01 access : read/write function: adccn is an adc negative channel selection register. this mmr is described in table 26. table 26 . adccn mmr bit designation bit value description 7 to 5 reserved. 4 to 0 negative channel selection bits. 00000 adc0. 00001 adc1. 00010 adc2. 00011 adc3. 00100 adc4. 00101 adc5. 00110 adc6. 00111 adc7. 01000 adc8. 01001 adc9. 01010 adc10. 01011 reserved 01100 ad c12. 01101 reserved 01110 reserved 01111 dac1. 10000 temperature sensor. 10001 agnd (self - diagnostic feature). 10010 internal reference (self - diagnostic feature). 10011 reserved others reserved. adcsta register name : adcsta address : 0xffff050c default value : 0x00 access : read function: adcsta is an adc status register that indicates when an adc conversion result is ready. the adcsta register contains only one bit, adcready (bit 0), representing the status of the adc. this bit is set at the end of an adc conversion, generating an adc interrupt. it is cleared automatically by reading the adcdat mmr. when the adc is performing a conversion, the status of the adc can be read externally via the adc busy pin. this pin is high during a conversion. when the conversion is finished, adc busy goes back low. this information can be available on p0.0 (see the general - purpose input/output section) if enabled in the adccon register. adcdat register na me : adcdat address : 0xffff0510 default v alue : 0x00000000 access : r ead function: adcdat is an adc data result register. hold the 12 - bit adc result as shown in figure 22. adcrst register name : adcrst address : 0xffff0514 d efault value : 0x00 access : read/write function: adcrst resets the digital interface of the adc. writing any value to this register resets all the adc registers to their default value. rev. e
data sheet aduc7023 | page 33 of 96 adcgn register name : adcgn address : 0xffff0530 default v alue : fac tory configured access : read/write function: adcgn is a 10 - bit gain calibration register. adcof register name : adcof address : 0xffff0534 default v alue : factory configured access : read/write function: adcof is a 10 - bit offset calibration register. c onverter operation the adc incorporates a successive approximation (sar) architecture involving a charge - sampled input stage. this architecture can operate in two different modes: differential and single - ended. differential mode the aduc7023 contain s a su ccessive approximation adc based on two capacitive dacs. figure 24 and figure 25 show simplified schematics of the adc in acquisition and conversion phase, respectively. the adc is comprised of co ntrol logic, a sar, and two capacitive dacs. in figure 24 (the acquisition phase), sw3 is closed and sw1 and sw2 are in position a. the comparator is held in a balanced condition, and the sampling capacitor arrays acquire the differential signal on the input. 08675-017 capacitive dac capacitive dac control logic comparator sw3 sw1 a a b b sw2 c s c s v ref adc0 adc11 mux channel+ channel? figure 24 . adc acquisition phase 08675-018 capacitive dac capacitive dac control logic comparator sw3 sw1 a a b b sw2 c s c s v ref adc0 adc11 mux channel+ channel? figure 25 . adc conversion phase when the adc starts a conversion, as shown in figure 25 , sw3 opens, and then sw1 and sw2 move to position b. this causes the comparator to become unbalanced. both inputs are disconnected once the conversion begins. the control logic and the charge redistribution dacs are used to add and subtract fixed amounts of charge from the sampling capacitor arrays to bring the comparator back into a balanced condition. when the comparator is rebalanced, the conversion is complete. the c ontrol logic generates the adc output code. the output impedances of the sources driving the v in+ and v in C pins must be matched; otherwise, the two inputs have different settling times, resulting in errors. single - ended mode in single - ended mode, sw2 is always connected internally to ground. the v in? pin can be floating. the input signal range on v in+ is 0 v to v ref . 08675-020 capacitive dac capacitive dac control logic comparator sw3 sw1 a b c s c s adc0 adc11 mux channel+ channel? figure 26 . adc in single - ended mode analog input structure figure 27 shows the equivalent circuit of the analog input structur e of the adc. the four diodes provide esd protection for the analog inputs. care must be taken to ensure that the analog input signals never exceed the supply rails by more than 300 mv; this cause s these diodes to become forward - biased and start conducting into the substrate. these diodes can conduct up to 10 ma without causing irreversible damage to the part. rev. e
aduc7023 data sheet | page 34 of 96 the c1 capacitors in figure 27 are typically 4 pf and can be primarily attributed to pin capacitance. the resisto rs are lumped components made up of the on resistance of the switches. the value of these resistors is typically about 100 ?. the c2 capacitors are the adc sampling capacitors and typically have a capacitance of 16 pf. av dd c1 d d r1 c2 av dd c1 d d r1 c2 08675-021 figure 27 . equivalent analog input circuit conversion phase: switches open, track phase: switches closed for ac applications, removing high frequency components from the analog input signal is recommended by using an rc low - pass filter on the relevant analog input p ins. in applications where harmonic distortion and signal - to - noise ratio are critical, the analog input should be driven from a low impedance source. large source impedances significantly affect the ac performance of the adc. this can necessitate the use o f an input buffer amplifier. the choice of the op amp is a function of the particular application. figure 28 and figure 29 give an example of an adc front end. 08675-022 aduc7023 adc0 10? 0.01f figure 28 . buffering single - ended diff erential input 08675-023 aduc7023 adc0 v ref adc1 figure 29 . buffering differential inputs when no amplifier is used to drive the analog input, limit the source impedance to values lower th an 1 k?. the maximum source impedance depends on the amount of total harmonic distortion (thd) that can be tolerated. the thd increases as the source impedance increases and the performance degrades. driving the analog i nputs internal or external references can be used for the adc. when operating in differential mode , there are restrictions on the common - mode input signal (v cm ), which is dependent upon the reference value and supply voltage used to ensure that the signal remains within the supply rails. table 27 gives some calculated v cm minimum and v cm maximum values. table 27. v cm ranges av dd v ref v cm min v cm max signal peak - to - peak 3.3 v 2.5 v 1.25 v 2.05 v 2.5 v 2.048 v 1.024 v 2.276 v 2.048 v 1.25 v 0.75 v 2.55 v 1.25 v 3.0 v 2.5 v 1.25 v 1.75 v 2.5 v 2.048 v 1.024 v 1.976 v 2.048 v 1.25 v 0.75 v 2.25 v 1.25 v calibration by default, the factory - set values written to the adc offset (adcof) and gain coefficient registers (adcgn) yield opti mum performance in terms of end point errors and linearity for standalone operation of the part (see the specifications section). if system calibration is required, it is possible to modify the default offset and gain co efficients to improve end point errors, but note that any modification to the factory - set adcof and adcgn values can degrade adc linearity performance. for system offset error correction, the adc channel input stage must be tied to agnd. a continuous software adc conv ersion loop must be implemented by modifying the value in adcof until the adc result (adcdat) reads c ode 0 to code 1. if the adcdat value is greater than 1, adcof should be decremented until adcdat reads code 0 to code 1. offset error correction is done digitally and has a resolution of 0.25 lsb and a range of 3.125% of v ref . for system gain error correction, the adc channel input stage must be tied to v ref . a continuous software adc conversion loop must be implemented to modify the value in adcgn until the adcdat reads c ode 4094 to code 4095. if the adcdat value is less than 4094, adcgn should be incremented until adcdat reads code 4094 to code 4095. similar to the offset calibration, the gain calibration resolution is 0.25 lsb with a range of 3% of v re f . temperature sensor the aduc7023 provides a voltage output from an on - chip band gap reference that is proportional to absolute temperature. this voltage output can also be routed through the front - end adc multiplexer (effectively an additional adc channe l input) , facilitating an internal temperature sensor channel, measuring die temperature. an adc t emperature s ensor conversion differs from a standard adc voltage. the adc performance specifications do not apply to the temperature sensor. chopping of the internal amplifier should be enabled using the tscon register. to enable this mode, the user must set bit 0 of tscon. the user must also take two consecutive adc readings and average them in this mode. rev. e
data sheet aduc7023 | page 35 of 96 the adccon register must be configured to 0x37 a3 . to calculate die temperature use the follo wing formula: t ? t ref = ( v adc ? v tref ) k w here : t is the t emperature result . t ref is 25c . v adc is the a verage adc result from two consecutive conversions . v t ref is 1369 mv, which corresponds to t ref = 25c as described in table 1 . k is the g ain of the adc in temperature s ensor mode as deter mined by characterization data , k = 0.2 262 c/mv . this corresponds to 1/v tc specification as shown in table 1 . using the default values from table 1 and without any calibra - tion, this equation becomes t C 25 c = ( v adc ? 1369 ) 0.2262 where: v adc is in millivolts. for increased accuracy, perform a single point calibration at a controlled temperature value. for the calculation shown without calibration, (t ref , v tref ) = (25c, 1369 mv). the idea of a single point calibra tion is to use other known (t ref , v tref ) values to replace the common (25c, 1369 mv) for every part. for some users, it is not possible to get such a known pair. for these cases, an aduc7023 comes with a single point calibration value loaded in the tempr ef register. for more details on this register, see the tempref register section. during production testing of the aduc7023, the tempref register is loaded with an offset adjustment factor. each part will have a different value i n the tempref register. using this single point calibration, use the same formula as shown: t ? t ref = ( v adc ? v tref ) k where: t ref is 27c when using the tempref register method , but is not guaranteed. t t ref can be calculated using the tempref register . ts con register name : tscon address : 0xffff0544 default v alue : 0x00 access : read/write table 28. ts con mmr bit designations bit description 7 to 1 reserved. 0 temperature s ensor c hop e nable b it. this bit is set to 1 to e nable chopping of the internal amplifier to the adc. this bit is cleared to disable chopping. this bit is cleared by default. tempref register name : tempref address : 0xffff0548 default v alue : factory configured access : read/write table 29. tempref mmr bit designations bit description 15 to 9 reserved. 8 temperature r eference voltage s ign . 7 to 0 temperature sensor offset calibration voltage. to calculate the v tref from the tempref register, pe rform the following calculati on: if tempref sign nega tive, subtract tempref from 2292 c tref = 2292 ? tempref [7:0] where temref [8] = 1. or if temref sign p ositive , add tempref to 2292 c tref = tempref [7:0] + 2292 where: tempref[8] = 0. then , v tref = ( c tref v ref )/4096 1000 where : c tref is calculate d as above. v ref is 2.5 v, internal reference volta ge. insert v tref into t C t ref = ( v adc C v tref ) k where: t ref is 27 c, when using temref register. v adc is the average adc result from two consecutive conversions. v tref is calculated as above . note that adc cod e value 2292 is a default value when using the temref register. it is not an exact value and must only be used with the tempref register. rev. e
aduc7023 data sheet | page 36 of 96 band gap reference the aduc7023 provides an on-chip band gap reference of 2.5 v, which can be used for the adc and dac. this internal reference also appears on the v ref pin. when using the internal reference, a 0.47 f capacitor must be connected from the external v ref pin to agnd to ensure stability and fast response during adc conversions. this reference can also be connected to an external pin (v ref ) and used as a reference for other circuits in the system. an external buffer is required because of the low drive capability of the v ref output. a programmable option also allows an external reference input on the v ref pin. refcon register name: refcon address: 0xffff048c default value: 0x00 access: read/write function: the band gap reference interface consists of an 8-bit mmr refcon described in table 30. table 30. refcon mmr bit designations bit description 7 to 1 reserved. 0 internal reference output enable. this bit is set by the user to connect the internal 2.5 v reference to the v ref pin. the reference can be used for an external component but needs to be buffered. this bit is cleared by the user to disconnect the reference from the v ref pin. to connect an external reference source to the aduc7023, configure refcon = 0x01. adc and the dacs can be configured to use the same or different reference resource. see table 42. rev. e
data sheet aduc7023 | page 37 of 96 nonvolatile flash/ee memory the aduc7023 incorporates flash/ee memory technology on chip to provide the user with nonvolatile, in - circuit reprogram - mable memory space. like eeprom, flash memory can be programmed in -syste m at a byte level, although it must first be erased. the erase is performed in page blocks. as a result, flash memory is often and more correctly referred to as flash/ee memory. the flash/ee memory represents a step closer to the ideal memory device that i ncludes nonvolatility, in - circuit programmability, high density, and low cost. incorporated in the aduc7023 , flash/ee memory technology allows the user to update program cod e space in - circuit, without need ing to replace one - time programmable (otp) devices at remote operating nodes. each part contains a 64 kb array of flash/ee memory. the lower 62 kb are available to the user , and the upper 2 kb contain permanently embedded firmware, allowing in - circuit serial download. these 2 kb of embedded firmware also c ontain a power - on configuration routine that downloads factory - calibrated coefficients to the various calibrated peripherals (such as adc, temperature sensor, and band gap references). this 2 kb embedded firmware is hidden from user code. flash/ee memory r eliability the flash/ee memory arrays on the parts are fully qualified for two key flash/ee memory characteristics: flash/ee memory cycling endurance and flash/ee memory data retention. endurance quantifies the ability of the flash/ee memory to be cycled t hrough many program, read, and erase cycles. a single endurance cycle is composed of four independent, sequential events, defined as: 1. initial page erase sequence. 2. read/verify sequence (single flash/ee). 3. byte program sequence memory. 4. second read/verify sequ ence (endurance cycle). in reliability qualification, every half word (16 - bit wide) location of the three pages (top, middle, and bottom) in the flash/ee memory is cycled 10,000 times from 0x0000 to 0xffff. as indicated in table 1 , the flash/ee memory endurance qualification is carried out in accordance with jedec retention lifetime specification a117 over the industrial temperature range of ?40 to +125c. the results allow the specification of a minimum endurance figure over a su pply temperature of 10,000 cycles. retention quantifies the ability of the flash/ee memory to retain its programmed data over time. again, the parts are qualified in accordance with the formal jedec retention lifetime specification (a117) at a specific jun ction temperature (t j = 85c). as part of this qualification procedure, the flash/ee memory is cycled to its specified endurance limit before data retention is characterized. this means that the flash/ee memory is guaranteed to retain its data for its full y specified retention lifetime every time the flash/ee memory is reprogrammed. in addition, note that retention lifetime, based on activation energy of 0.6 ev , derates with t j as shown in figure 30. 150 300 450 600 30 40 55 70 85 100 125 135 150 retention (years) 0 08675-024 junction temperature (c) figure 30 . flash/ee memory data retention programming the 62 kb of flash/ee memory can be programmed in circuit, using the serial download mode or the provided jtag mode. downloading (in - circuit programming) via i 2 c the aduc7023 facilitate s code download via the the i 2 c port. the parts enter download mode after a reset or power cycle if the bm pin is pulled low through an external 1 k? resistor and flash a ddess 0x80014 = 0xffffffff . once in download mode, the user can download code to the full 62 kb of flash/ ee memory while the device is in - circuit in its target application hardware. an executable pc i 2 c download is provided as part of the development system for serial downloading via the i 2 c. a usb to i 2 c download dongle can be purchased from analog devices , inc. this board connects to the usb port of a pc and to the i 2 c port of the aduc7023. the part number is usb - i2c/lin - conv -z. the an - 806 application note describes the protocol for serial downloading via the i 2 c in more detail. jtag access the jtag protocol uses the on - chip jtag interface to facilitate code download an d debug. to access the part via the jtag interface, the p0.0/bm pin must be set high to enable p0.1/p0 .2/p0.3 as jtag pins. when debugging, u ser code should not write to the p0.1/p0.2 and p0.3 pins . if user code toggles any of these pins, jtag debug po ds are not able to connect to the aduc7023. in case this happens, the user should have a function in code that can be called exte rnally to mass erase the part. alternatively, the user should ensure that flash a dd ress 0x80 014 is erased to allow erasing of the part through the i 2 c interface. rev. e
aduc7023 data sheet | page 38 of 96 security the 62 kb of flash/ee memory available to the user can be re ad and write protected. bit 31 of the feepro/feehide mmr (see table 34 ) protects the 62 kb from being read through jtag programming mode. the other 31 bits of this register protect writing to the flash memory. each bit protects fo ur pages, that is, 2 kb. write protection is activated for all types of access. three levels of protection protection can be set and removed by writing directly into feehide mmr. this protection does not remain after reset. protection can be set by writing into feepro mmr. it only takes effect after a save protection command (0x0c) and a reset. the feepro mmr is protected by a key to avoid direct access. the key is saved once and must be entered again to modify feepro. a mass erase sets the key back to 0xff ff but also erases all the user code. flash can be permanently protected by using the feepro mmr and a particular value of key: 0xdeaddead. entering the key again to modify the feepro register is not allowed. sequence to write the key 1. write the bit in feepro corresponding to the page to be protected. 2. enable key protection by setting bit 6 of feemod (bit 5 must equal 0). 3. write a 32 - bit key in feeadr, feedat. 4. run the write key command 0x0c in feecon; wait for the read to be successful by monitoring feesta. 5. reset the part. to remove or modify the protection, the same sequence is used with a modified value of feepro. if the key chosen is the value 0xdead, the memory protection cannot be removed. only a mass erase unprotects the part, but it also erases all use r code. the sequence to write the key is illustrated in the following example (this protects writing page 4 to page 7 of the flash): feepro=0xfffffffd; //protect page 4 to page 7 feemod=0x48; //write key enable feeadr=0x1234; //16 bit key value feedat=0x5678; //16 bit key value feecon= 0x0c; //write key command the same sequence should be followed to protect the part permanently with feeadr = 0xdead and feedat = 0xdead . flash/ee control int erface serial and jtag programming use the flash/ee control interf ace, which includes the eight mmrs outlined in this section. feesta register name : feesta address : 0xfffff800 default v alue : 0x20 access : r ead function: feesta is a read - only register that reflects the status of the flash control interface as described in table 31. table 31 . feesta mmr bit designations bit description 7 to 6 reserved. 5 reserved. 4 reserved. 3 flash i nterrupt s tatus b it. this bit is s et automatically when an interrupt occurs, that is, when a command is complete and the flash/ee interrupt enable bit in the feemod register is set. this bit is c leared when reading feesta register. 2 flash/ee c ontroller b usy. this bit is set automatically when the controller is busy. this bit is c leared automatically when the controller is not busy. 1 command f ail. this bit is s et automatically when a command is not completed . this bit is c leared automatically when reading feesta register. 0 command p ass. this bit is s et by the mi croconverter when a command is completed. this bit is c leared automatically when reading the feesta register. rev. e
data sheet aduc7023 | page 39 of 96 feemod register name : feemod address : 0xfffff804 default v alue : 0x0000 access : read/write function: feemod sets the operating mode of the flash control interface. table 32 shows feemod mmr bit designations. table 32 . feemod mmr bit designations bit description 15 to 9 reserved. 8 reserved. a lways set this bit t o 0. 7 to 5 reserved. a lwa ys set this bit t o 0 except when writing keys. see the sequence to write the key section. 4 flash/ee i nterrupt e nable. this bit is s et by the user to enable the flash/ee interrupt. the interrupt occurs when a command is co mplete. this bit is c leared by the user to disable the flash/ee interrupt. 3 erase/ w rite c ommand p rotection. this bit is s et by the user to enable the erase and write commands. this bit is c leared to protect the flash /ee against erase/write command . 2 to 0 reserved. a lways set this bit to 0 . feecon register name : feecon address : 0xfffff808 default v alue : 0x07 access : read/write function: feecon is an 8 - bit command register. the commands are described in table 33 . tab le 33 . command codes in feecon code command description 0x00 1 null idle st ate. 0x01 1 single r ead load feedat with the 16 - bit data. indexed by feeadr. 0x02 1 single w rite write feedat at the address pointed by feeadr. this operat ion takes 50 s. 0x03 1 erase/w rite erase the page indexed by feeadr , and write feedat at the location pointed by feeadr. this operation takes approximately 24 ms. 0x04 1 single v erify compare the contents of the location pointed by feeadr to the data in feedat. the result of the comparison is returned in feesta bit 1. 0x05 1 single e rase erase the page indexed by feeadr. 0x06 1 mass e rase erase 62 kb of user space. the 2 kb of kernel are protected. this operation takes 2.48 sec. to prevent accidental exec ution, a command sequence is required to execute this instruction. see the command sequence for executing a mass erase section. 0x07 reserved reserved. 0x08 reserved reserved. 0x09 reserved reserved. 0x0a reserved reserve d. 0x0b signature give a signature of the 64 kb of flash/ee in the 24 - bit feesign mmr. this operation takes 32,778 clock cycles. 0x0c protect this command can run one time only. the value of feepro is saved and removed only with a mass erase (0x06) or t he key (feeadr/feedat) . rev. e
aduc7023 data sheet | page 40 of 96 code command description 0x0d reserved reserved. 0x0e reserved reserved. 0x0f ping no operation; interrupt generated. 1 the feecon register always reads 0x07 immediately after execution of any of these commands. feedat register name : feedat address : 0xfffff80c default v alue : 0xxxxx access : read/write function: feedat is a 16 - bit data register . feeadr register name : feeadr address : 0xfffff810 default v alue : 0x0000 access : read/write function: feeadr is another 16 - bit address register . feesign register name : feesign address : 0xfffff818 default v alue : 0xffffff access : r ead function: feesign is a 24- bit code signature. feepro register name : feepro address : 0xfffff81c default v alue : 0x00000000 access : read/write function: feepr o mmr provides protection following a subsequent reset of the mmr. it requires a software key (see table 34). feehide register name : feehide address : 0xfffff820 default v alue : 0xffffffff access : read/write function: feehide mmr provides immediate protection . it does not require any software key. t he protection settings in feehide are cleared by a reset (see table 34). table 34 . feepro and feehide mmr bit designations bit de scription 31 read p rotection. this bit is c leared by the user to protect the code this bit is s et by the user to allow reading the code. 30 to 0 write p rotection for page 123 to page 120, page 119 to page 116, and page 0 to page 3. this bit is c le ared by the user to protect the pages in writing. this bit is s et by the user to allow writing the pages. command sequence for executing a mass erase feedat = 0x3cff; feeadr = 0xffc3; feemod = feemod|0x8; //erase key enable feecon = 0x06; //mass erase command rev. e
data sheet aduc7023 | page 41 of 96 execution time from sram and flash/ee execution from sram fetching instructions from sram takes one clock cycle because the access time of the sram is 2 ns , and a clock cycle is 22 ns minimum. however, if the instruction involves reading or wr iting data to memory, one extra cycle must be added if the data is in sram (or three cycles if the data is in flash/ee); one cycle to execute the instruction and two cycles to obtain the 32- bit data from flash/ee. a control flow instruction (a branch inst ruction, for example) takes one cycle to fetch but also takes two cycles to fill the pipeline with the new instructions. execution from flash/ee because the flash/ee width is 16 bits and the access time for 16- bit words is 22 ns, execution from flash/ee ca nnot be completed in one cycle (as can be done from sram when the cd b it = 0). also, some dead times are needed before accessing data for any value of cd bits. in arm mode, where instructions are 32 bits, two cycles are needed to fetch any instruction when cd = 0. in thumb mode, where instructions are 16 bits, one cycle is needed to fetch any instruction. timing is identical in both modes when executing instructions that involve using the flash/ee for data memory. if the instruction to be executed is a con trol flow instruction, an extra cycle is needed to decode the new address of the program counter, and then four cycles are needed to fill the pipeline. a data proc essing instruction involving only the core register does not require any extra clock cycles. however, if it involves data in flash/ee, an extra clock cycle is needed to decode the address of the data, and two cycles are needed to get the 32 - bit data from flash/ee. an extra cycle must also be added before fetching another instruction. data transfer instructions are more complex and are summarized in table 35 . table 35 . execution cycles in arm/thumb mode instructions fetch cycles dead time data access dead time ld 1 2/1 1 2 1 ldh 2/1 1 1 1 ldm/pus h 2/1 n 2 2 n 2 n 1 str 1 2/1 1 2 20 ns 1 strh 2/1 1 20 ns 1 strm/pop 2/1 n 1 2 n 20 ns 1 n 1 1 the swap instruction combines an ld and str instruction with only one fetch, giving a total of eight cycles + 40 ns. 2 n is the number of data to load or store in the multiple load/store instruction (1 < n 16). reset and remap the arm exception vectors are all situated at the bottom of the memory array, from address 0x00000000 to address 0x00000020 as shown in figure 31 . 08675-025 kernel interrupt service routines interrupt service routines arm exception vector addresses 0x00000020 0x00011fff 0x0008ffff 0xffffffff flash/ee sram mirror space 0x00000000 0x00000000 0x00010000 0x00080000 figure 31 . remap for exception execution by default, and after any reset, the flash/ee is mirrored at the bottom of the memory array. the remap function allows the programmer to mirror the sram at the bottom of the memory array, which facilitates execution of exception routines from sram instead of from flash/ee. this means exceptions are executed twice as fast, being executed in 32 - bit arm mode with 32- bit wide sram instead of 16 - bit wide flash/ee memory. remap operation when a reset occurs on the aduc7023 , execution automatically starts in factory programmed, internal configuration code. this kernel is hidden and cannot be accessed by user code. if the part is in normal mode (bm pin is high), it executes the power - on configuration routine of the k ernel and then jumps to the reset vector address, 0x00000000, to execute the reset exception routine of the user. because the flash/ee is mirrored at the bottom of the memory array at reset, the reset interrupt routine must always be written in flash/ee. t he remap is done from flash/ee by setting bit 0 of the r emap register. caution must be taken to exe cute this command from flash/ee above address 0x00080020, and n ot from the bottom of the array because this is replaced by the sram. this operation is revers ible. the flash/ee can be remapped at address 0x00000000 by clearing bit 0 of the r emap mmr. caution must again be taken to execute the remap function from outside the mirrored area. any type of reset remaps the flash/ee memory at the bottom of the array. rev. e
aduc7023 data sheet | page 42 of 96 remap register name : remap address : 0xffff0220 default v alue : 0x00 access : read/write table 36 . remap mmr bit designations bit name description 7 to 5 reserved. 4 read - o nly b it. indicates the size of the flash/ee memor y available. if this bit is set, only 32 kb of flash/ee memory is available. 3 read - o nly b it. indicates the size of the sram memory available. if this bit is set, only 4 kb of sram is available. 2 to 1 jtafo read only b its. see the p0.0/bm description for further details. if = [00], then p0.1/p0.2/p0.3 are configured as jtag pins. if = [1x], then p0.1/p0.2/p0.3 are configured as gpio pins. these bits are configured by the kernel after any reset sequence and depend on the state of p0.0 during the last reset sequence. 0 remap remap b it. this bit is set by the user to remap the sram to address 0x00000000. this bit is c leared automatically after reset to remap the flash/ee memory to address 0x00000000. reset operation there are four kinds of reset: external, power - on, watchdog expi r ation, and software force. the rststa register indicates the source of the last reset, and rstclr allows clearing of the rststa register. these registers can be used during a reset exception service routine to identify the source of the reset. if rststa is null, the reset is external. the rstcfg register allows different peripherals to retain their state after a watchdog or software reset. rststa register name : rststa address : 0xffff0230 default v alue : 0x01 acces s: read/write table 37 . rststa mmr bit designations bit description 7 to 3 reserved. 2 software r eset. this bit is s et by the user to force a software reset. this bit is c leared by setting the corresponding bit in rstclr . 1 watchdog t imeout. this bit is s et automatically when a watchdog timeout occurs. this bit is c leared by setting the corresponding bit in rstclr. 0 power -o n r eset. this bit is s et automatically when a power - on reset occurs. this bit is c leare d by setting the corresponding bit in rstclr. rstclr register name : rstclr address : 0xffff0234 default v alue : 0x00 access : w rite function: note that to clear the rststa register, users must write the v alue 0x07 to the rstclr register. rstcfg registe r name : rstcfg address : 0xffff024c default v alue : 0x00 access : read/write table 38 . rstcfg mmr bit designations bit description 7 to 3 reserved. always set to 0. 2 this bit is set to 1 to configure the dac outputs to retain their state after a watchdog or software reset. this bit is cleared for the dac pins and registers to return to their default state. 1 reserved. always set to 0. 0 this bit is set to 1 to configure the gpio pins to retain their state after a watchdog or software reset. this bit is cleared for the gpio pins and registers to return to their default state. rev. e
data sheet aduc7023 | page 43 of 96 rstkey 1 register name: rstkey1 address: 0xffff0248 default value: 0xxx access w rite rstkey2register name : rstkey2 address : 0xffff0250 defaul t v alue : 0xxx access: write table 39. rstcfg write sequence name code rst key 1 0x76 rstcfg user v alue rstkey2 0xb1 rev. e
aduc7023 data sheet | page 44 of 96 other analog peripherals dac the aduc7023 incorporates four, 12-bit voltage output dacs on chip. each dac has a rail-to-rail voltage output buffer capable of driving 5 k/100 pf. each dac has two selectable ranges: 0 v to v ref (internal band gap 2.5 v reference) and 0 v to av dd . the signal range is 0 v to av dd . by setting rstcfg bit 2, the dac output pins can retain their state during a watchdog or software reset. mmrs interface each dac is independently configurable through a control register and a data register. these two registers are identical for the four dacs. only dac0con (see table 40) and dac0dat (see table 41) are described in detail in this section. dacxcon registers name address default value access dac0con 0xffff0600 0x00 r/w dac1con 0xffff0608 0x00 r/w dac2con 0xffff0610 0x00 r/w dac3con 0xffff0618 0x00 r/w table 40. dac0con mmr bit designations bit value name description 7 reserved. 6 dacby this bit is set to bypass the dac output buffer. this bit is cleared to enable the dac output buffer. 5 dacclk dac update rate. this bit is set by the user to update the dac using timer1. this bit is cleared by the user to update the dac using hclk (core clock). 4 dacclr dac clear bit. this bit is set by the user to enable normal dac operation. this bit is cleared by the user to reset data register of the dac to 0. 3 reserved. this bit remains at 0. 2 reserved. this bit remains at 0. 1 to 0 dac range bits. 00 power-down mode. the dac output is in tristate. 01 reserved. 10 0 v to v ref (2.5 v) range. 11 0 v to av dd range. dacxdat registers name address default value access dac0dat 0xffff0604 0x00000000 r/w dac1dat 0xffff060c 0x00000000 r/w dac2dat 0xffff0614 0x00000000 r/w dac3dat 0xffff061c 0x00000000 r/w table 41. dac0dat mmr bit designations bit description 31 to 28 reserved. 27 to 16 12-bit data for dac0. 15 to 0 reserved. using the dacs the on-chip dac architecture consists of a resistor string dac followed by an output buffer ampl ifier. the functional equivalent is shown in figure 32. 08675-026 r r r r r dac0 v ref av dd dac ref figure 32. dac structure as illustrated in figure 32, the reference source for each dac is user-selectable in software. it can be either av dd or v ref . in 0-to-av dd mode, the dac output transfer function spans from 0 v to the voltage at the av dd pin. in 0-to-v ref mode, the dac output transfer function spans from 0 v to the internal 2.5 v reference, v ref . the dac output buffer amplifier features a true, rail-to-rail output stage implementation. this means that when unloaded, each output is capable of swinging to within less than 5 mv of both av dd and ground. moreover, the dac linearity specification (when driving a 5 k resistive load to ground) is guaranteed through the full transfer function except code 0 to code 100, and, in 0-to-av dd mode only, code 3995 to code 4095. linearity degradation near ground and v dd is caused by saturation of the output amplifier, and a general representation of its effects (neglecting offset and gain error) is illustrated in figure 33. the dotted line in figure 33 indicates the ideal transfer function, and the solid line represents what the transfer function may look like with endpoint nonlinearities due to saturation of the output amplifier. figure 33 represents a transfer function in 0-to-av dd rev. e
data sheet aduc7023 | page 45 of 96 mode only. in 0 - to -v ref mode (w ith v ref < av dd ), the lower nonlinearity is similar. however, the upper portion of the transfer function follows the ideal line right to the end (v ref in this case, not av dd ), showing no signs of endpoint linearity errors . 08675-027 av dd av dd ? 100mv 100mv 0x00000000 0x0fff0000 figure 33 . endpoint nonlinearities due to amplifier saturation the endpoint nonlinearities conceptually illustrated in figure 33 get worse as a function of output loading. most of the aduc7023 data sheet specificatio ns assume a 5 k? resistive load to ground at the dac output. as the output is forced to source or sink more current, the nonlinear regions at the top or bottom of figure 33 become larger, respectively . with larger current dema nds, this can significantly limit output voltage swing. references to adc and the dacs adc and dacs can be configured to use internal v ref or an external reference as a reference source. internal v ref must work with an external 0.47 f capacitor. note that if an external reference is used , the dacs will no longer meet offset and gain specifications . if a n external reference is required for the adc , then the dacs should be configured to use the 0 to av dd range. table 42. reference s ource selection for adc and dac refcon bit 0 dacxcon[1:0] description 0 00 adc works with external reference. dacs power down. 0 01 reserved. 0 10 reserved. 0 11 adc works with external reference. dacs work with internal av dd . 1 00 adc works with inte rnal v ref . dacs power down. 1 01 adc and dacs work with an external reference. the external reference must be capable of overdriving the internal reference . 1 10 adc and dacs work with internal v ref 1 11 adc works with internal v ref . dacs work with inte rnal av dd . configuring dac b uffers in op amp mode in op amp mode, the dac output buffer s are used as an op amp with the dac itself disabled. if dacbcfg b it 0 is set, adc0 is the positive input to the op amp , adc1 is the negative input , and dac0 is the ou tput. in this mode, the dac should be powered down by clearing b it 0 and bit 1 of dac 0 con. if dacbcfg b it 1 is set, adc2 is the positive input to the op amp , adc3 is the negative input , and dac1 is the output. in this mode, the dac should be powered down b y clearing b it 0 and bit 1 of dac 1 con. if dacbcfg b it 2 is set, adc4 is the positive input to the op amp , adc5 is the negative input , and dac2 is the output. in this mode, the dac should be powered down by clearing b it 0 and bit 1 of dac 2 con. if dacbcfg bi t 3 is set, adc8 is the positive input to the op amp , adc9 is the negative input , and dac3 is the output. in this mode, the dac should be powered down by clearing b it 0 and bit 1 of dac 3 con. dac bcfg register name : dacbcfg address : 0xffff0654 default va lue : 0x00 access : read/write table 43 . dac bcfg mmr bit designations bit description 7 to 4 reserved. always set to 0. 3 this bit is set to 1 to configure dac3 output buffer in o p amp mode. this bit is cleared for the dac buff er to operate as normal. 2 this bit is set to 1 to configure dac2 output buffer in o p amp mode. this bit is cleared for the dac buffer to operate as normal. 1 this bit is s et to 1 to configure dac1 output buffer in o p amp mode. this bit is cleared for the dac buffer to operate as normal. 0 this bit is s et to 1 to configure dac0 output buffer in o p amp mode. this bit is cleared for the dac buffer to operate as normal. rev. e
aduc7023 data sheet | page 46 of 96 dacbkey0 register name: dacbkey0 address: 0xffff0650 default value: 0x0000 access: write dacbkey1 register name: dacbkey1 address: 0xffff0658 default value: 0x0000 access: write table 44. dacbcfg write sequence name code dacbkey0 0x9a dacbcfg user value dacbkey1 0x0c power supply monitor the power supply monitor regulates the iov dd supply on the aduc7023. it indicates when the iov dd supply pin drops below a supply trip point. the monitor function is controlled via the psmcon register. if enabled in the irqen or fiqen register, the monitor interrupts the core using the psmi bit in the psmcon mmr. this bit is immediately cleared when cmp goes high. this monitor function allows the user to save working registers to avoid possible data loss due to low supply or brownout conditions. it also ensures that normal code execution does not resume until a safe supply level has been established. psmcon register name: psmcon address: 0xffff0440 default value: 0x0008 access: read/write table 45. psmcon mmr bit descriptions bit name description 3 cmp comparator bit. this is a read-only bit that directly reflects the state of the comparator. read 1 indicates the iov dd supply is above its selected trip point, or the psm is in power-down mode. read 0 indicates the iov dd supply is below its selected trip point. this bit should be set before leaving the interrupt service routine. 2 tp trip point selection bits. 0 = 2.79 v. 1 = reserved. 1 psmen power supply monitor enable bit. this bit is set to 1 to enable the power supply monitor circuit. this bit is cleared to 0 to disable the power supply monitor circuit. 0 psmi power supply monitor interrupt bit. this bit is set high by the microconverter once cmp goes low, indicating low i/o supply. the psmi bit can be used to interrupt the processor. once cmp returns high, the psmi bit can be cleared by writing a 1 to this location. a 0 write has no effect. there is no timeout delay; psmi can be immediately cleared once cmp goes high. comparator the aduc7023 integrates voltage comparators. the positive input is multiplexed with adc2, and the negative input has two options: adc3 or dac0. the output of the comparator can be configured to generate a system interrupt, be routed directly to the programmable logic array, start an adc conversion, or be on an external pin, comp out , as shown in figure 34. 08675-028 mux irq mux dac0 adc2/cmp0 adc3/cmp1 p0.5/comp out figure 34. comparator hysteresis figure 35 shows how the input offset voltage and hysteresis terms are defined. input offset voltage (v os ) is the difference between the center of the hysteresis range and the ground level. this can either be positive or negative. the hysteresis voltage (v h ) is ? the width of the hysteresis range. 08675-029 comp out cmp0 v h v h v os figure 35. comparator hysteresis transfer function rev. e
data sheet aduc7023 | page 47 of 96 comparator interface the comparator interface consists of a 16 - bit mmr, cmpcon, which is described in table 46 . cmpcon register name : cmpcon address : 0xffff0444 default v alu e: 0x0000 access : read/write table 46 . cmpcon mmr bit descriptions bit value name description 15 to 11 reserved. 10 cmpen comparator e nable b it. this bit is s et by the user to enable the comparator. this bit is c lea red by the user to disable the comparator . 9 to 8 cmpin comparator n egative i nput s elect b its. 00 av dd /2. 01 adc3 input. 10 dac0 output. 11 reserved. 7 to 6 cmpoc comparator output c onfiguration b its. 00 reserved. 01 reserved. 10 o utput on c o mp out . 11 irq. 5 cmpol comparator o utput l ogic s tate b it. when low, the comparator output is high if the positive input (cmp0) is above the negative input (cmp1). when high, the comparator output is high if the positive input is below the n egative input. 4 to 3 cmpres response t ime. 00 5 s response time typical for large sig nals (2.5 v differential). 17 s response time typical for small signals (0.65 mv differential). 11 3 s typical. 01/10 reserved. 2 cmphyst comparator h yste resis b it. this bit is s et by the user to have a hysteresis of about 7.5 mv. this bit is c leared by the user to have no hysteresis. 1 cmpori comparator o utput r ising e dge i nterrupt. this bit is s et automatically when a rising edge occurs on the moni tored voltage (cmp0). this bit is c leared by the user by writing a 1 to this bit. 0 cmpofi comparator o utput r all y ing e dge i nterrupt. this bit is s et automatically when a falling edge occurs on the monitored voltage (cmp0). this bit is c leared by user. rev. e
aduc7023 data sheet | page 48 of 96 oscillator and pll power control clocking system each aduc7023 integrates a 32.768 khz 3% oscillator, a clock divider, and a pll. the pll locks onto a multiple (1275) of the internal oscillator or an external 32.768 khz crystal to provide a stable 41.78 mhz clock (uclk) for the system. to allow power saving, the core can operate at this frequency, or at binary submultiples of it. the actual core operating frequency, uclk/2 cd , is refer r ed to as hclk. the default core clock is the p ll clock divided by 8 (cd = 3) or 5.22 mhz. the core clock frequency can also come from an external clock on the eclk pin as described in figure 36 . 08675-030 *32.768khz 3% at power up 41.78mhz oclk 32.768khz watchdog timer internal 32khz* oscillator crystal oscillator timers mdclk hclk pll core i 2 c uclk analog peripherals /2 cd cd xclko xclki p1.2/xclk p1.2/eclk figure 36 . clocking system the selection of the clock source is in the pllcon register. by default, the part uses the internal oscillator feeding the pll. in noisy environments, noise can couple to the external crystal pins, and pll may quickly lose lock. a pll interrupt is provided in the interrupt con troller. the core clock is immediately halted, and this interrupt is only serviced when the lock is restored. in case of crystal loss, use the watchdog timer. during initialization, a test on the rststa can determine if the reset came from the watchdog tim er. power control system a choice of operating modes is available on the aduc7023. table 47 describes what part is powered on in the different modes and indicates the power - up time. table 48 gives some typical values of the total current consum ption (analog + digital supply currents) in the different modes, depending on the clock divider bits. the adc is turned off. note that these values also include current consumption of the regulator and other parts on the test board where these values are measured. table 47 . operating modes mode core peripherals pll xtal/t2/t3 irq0 to irq3 start - up/power - on time active yes x x x x 66 ms at cd = 0 pause x x x x 230 ns at cd = 0; 3 s at c d = 7 nap x x x 283 ns at cd = 0; 3 s at cd = 7 sleep x x 1.23 ms stop x 1.45 ms x = dont care. table 48 . typical cu rrent consumption at 25c in ma pc[2:0] mode cd = 0 cd = 1 cd = 2 cd = 3 cd = 4 cd = 5 cd = 6 cd = 7 000 active 28 17 12 11 9.3 7.5 7.2 7 001 pause 14 9 7.6 5.7 4.8 4.6 4.6 4.6 010 nap 5 4.5 4.5 4.5 4.5 4.5 4.5 4.5 011 sleep 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 100 stop 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 rev. e
data sheet aduc7023 | page 49 of 96 mmrs and keys the operating mode , clocking mode, and programmable clock divider are controlled via three mmrs, pllcon (see table 49) and powconx. pllcon controls the operating mode of the clock system, powcon0 controls the core clock fr equency and the power - down mode, powcon1 controls the clock frequency to i 2 c and spi. to prevent accidental programming, a certain sequence has to be followed to write to the pllcon and powconx registers. pllkey 1 register name : pllkey1 address : 0xffff0410 default v alue : 0xxxxx a ccess : w rite pllkey 2 register name : pllkey2 address : 0xffff0418 default v alue : 0x xxxx access : w rite pllcon register name : pllcon address : 0xffff0414 default v alue : 0x21 access : read/write table 49 . pllcon mmr bit designati ons bit value name description 7 to 6 reserved. 5 osel 32 khz pll i nput s election. this bit is s et by the user to select the internal 32 khz oscillator. this bit is s et by default. this bit is c leared by the user to select the external 32 khz crystal. 4 to 2 reserved. 1 to 0 mdclk clocking m odes. 00 reserved. 01 p ll d efault configuration. 10 reserved. 11 external c lock on p in 33 (40 - lead lfcsp)/pin 25 (32 - lead lfcsp) . table 50 . pllcon write sequence name code pllkey1 0xaa pllcon user value pllkey2 0x55 powkey 1 register name: powkey1 address: 0xffff0404 default value: 0x xxxx access: w rite function: powkey1 prevents accidental programming to powcon0. powkey 2 register name powkey2 address 0xffff040c de fault v alue 0x xxxx access w rite function: powkey2 prevents accidental programming to powcon0. powcon0 register name : powcon0 address : 0xffff0408 default v alue : 0x00 access : read/write table 51. powcon0 mmr bit designations bit value name description 7 reserved. 6 to 4 pc operating m odes. 000 active m ode. 001 pause m ode. 010 nap. 011 sleep m ode. irq0 to irq3 can wake up the part. 100 stop m ode. irq0 to irq3 can wake up the part. others reserved. 3 re served. 2 to 0 cd cpu c lock d ivider b its. 000 41.78 mhz. 001 20.89 mhz. 010 10.44 mhz. 011 5.22 mhz. 100 2.61 mhz. 101 1.31 mhz. 110 653 khz. 111 326 khz. rev. e
aduc7023 data sheet | page 50 of 96 table 52. powcon0 write sequence name code powke y1 0x01 powcon0 user v alue powkey2 0xf4 powkey 3 register name : powkey3 address : 0xffff0434 default v alue : 0x xxxx access : w rite function: powkey3 prevents accidental programming to powcon1. powkey 4 register name powkey4 address 0xffff043c default value 0x xxxx access w rite function: powkey4 prevents accidental programming to powcon1. powcon1 register name : powcon1 address : 0xffff0438 default v alue : 0x0004 access : read/write table 53. powcon1 mmr bit designations bit value name description 15 to 9 reserved . 8 spipo clearing this bit powers down the spi. 7 to 6 spi clkdiv spi block driving clock divider bits. 00 41.78 mhz. 01 20.89 mhz. 10 10.44 mhz. 11 5.22 mhz. 5 i2c 1 po clearing this bit powers do wn the i 2 c1. 4 to 3 i2c 1 clkdiv i 2 c0 block driving clock divider bits. 00 41.78 mhz. 01 10.44 mhz. 10 5.22 mhz. 11 1.31 mhz. 2 i2c 0 po clearing this bit powers down the i 2 c0. 1 to 0 i2c 0 clkdiv i 2 c1 block driving clock divider bits. 00 41 .78 mhz. 01 10.44 mhz. 10 5.22 mhz. 11 1.31 mhz. 1 divided clock for spi/i2c0/i2c1 must be greater than or equal to the cpu clock as selected by powcon0[2:0] table 54 . powcon1 write sequence name code powkey 3 0x76 powco n1 user v alue powkey 4 0x b1 rev. e
data sheet aduc7023 | page 51 of 96 digital peripherals general-purpose input/output the aduc7023 provides up to 20 general-purpose, bidirectional i/o (gpio) pins. all i/o pins apart from the pins shared with the adc are 5 v tolerant, meaning the gpios support an input voltage of 5 v. the shared adc pins only support an input up to avdd. in general, many of the gpio pins have multiple functions (see table 55 for the pin function definitions). by default, the gpio pins are configured in gpio mode. all gpio pins have an internal pull-up resistor (of about 100 k) and their drive capability is 1.6 ma. note that a maximum of 20 gpios can drive 1.6 ma at the same time. using the gpxpar registers, it is possible to enable/disable the pull-up resistors. the 20 gpios are grouped in three ports, port 0 to port 2 (port x). each port is controlled by four or five mmrs. the input level of any gpio can be read at any time in the gpxdat mmr, even when the pin is configured in a mode other than gpio. the pla input is always active. when the aduc7023 part enters a power-saving mode, the gpio pins retain their state. also note, that by setting rstcfg bit 0, the gpio pins can retain their state during a watchdog or software reset. table 55. gpio pin function descriptions configuration port pin 00 01 10 11 0 p0.0 gpio/bm ntrst adc busy plai[8] p0.1 1 gpio tdo plai[9] p0.2 1 gpio tdi plao[8] p0.3 1 gpio tck plao[9] p0.4 gpio/irq0 scl0 conv start plai[0] p0.5 gpio sda0 comp out plai[1] p0.6 gpio miso scl1 2 plai[2] p0.7 gpio mosi sda1 2 plao[0] 1 p1.0 gpio sclk pwm0 plao[1] p1.1 gpio/irq1 ss pwm1 plao[2] p1.2 3 gpio/irq2 adc4 eclk plai[3] p1.3 gpio/irq3 adc5 plai[4] p1.4 gpio adc10 plao[3] p1.5 gpio adc6 pwm tripinput plao[4] p1.6 gpio scl1 4 pwm2 plai[5] p1.7 gpio sda1 4 pwm3 plai[6] 2 p2.0 gpio adc12 pwm4 plai[7] p2.2 gpio adc7 pwmsync plao[6] p2.3 gpio adc8 plao[7] p2.4 gpio adc9 plai[10] 1 these pins should not be used by us er code when debugging the part via jtag. see table 36 for further details on how to configure these pins for gpio mode. the default value of these pins depends on the level of the p0.0/bm pin during the last reset sequence. 2 i 2 c1 function is only available on the 32-lead and 36-ball packages. 3 when configured in mode 2, p1.2 is eclk by default, or core clock output. to configure it as a clock input, the mdcl k bits in pllcon must be set to 11. 4 i 2 c1 function is only available on the 40-lead package. gpxcon registers name address default value access gp0con 0xfffff400 0x00001111 r/w gp1con 0xfffff404 0x00000000 r/w gp2con 0xfffff408 0x00000000 r/w gpxcon are the port x control registers, which select the function of each pin of port x as described in table 56. table 56. gpxcon mmr bit descriptions bit description 31 to 30 reserved. 29 to 28 select function of px.7 pin. 27 to 26 reserved. 25 to 24 select function of px.6 pin. 23 to 22 reserved. 21 to 20 select function of px.5 pin. 19 to 18 reserved. 17 to 16 select function of px.4 pin. 15 to 14 reserved. 13 to 12 select function of px.3 pin. 11 to 10 reserved. 9 to 8 select function of px.2 pin. 7 to 6 reserved. 5 to 4 select function of px.1 pin. 3 to 2 reserved. 1 to 0 select function of px.0 pin. gp0par register name gp0par address 0xfffff42c default value 0x22220000 access read/write function gp0par programs the parameters for port 0, port 1, and port 2. note that the gp0dat mmr must always be written after changing the gp0par mmr. gp1par register name gp1par address 0xfffff43c default value 0x22000022 access read/write function gp1par programs the parameters for port 0, port 1, and port 2. note that the gp1dat mmr must always be written after changing the gp1par mmr. rev. e
aduc7023 data sheet | page 52 of 96 gp 2 par register name gp2 pa r address 0xfffff4 4c default v alue 0x00000000 access r ead/write function gp2par programs the parameters for port 0, port 1, and port 2. note that the gp2dat mmr must always be written after changing the gp2par mmr. table 57 . gpxpar mmr bit descriptions bit description 31 reserved. 30 to 29 drive strength px.7 28 pull -u p d isable px.7. 27 reserved. 26 t o 26 drive strength px.6 24 pull -u p d isable px.6. 23 reserved. 22 to 21 drive strength px.5 20 pull -u p d isable px.5. 19 reserved. 18 to 17 drive strength px.4 16 pull -u p d isable px.4. 15 reserved. 14 to 13 drive strength px.3 12 pull -u p d isable p x.3. 11 reserved. 10 to 9 drive strength px.2 8 pull -u p d isable px.2. 7 reserved. 6 to 5 drive strength px.1 4 pull -u p d isable px.1. 3 reserved. 2 to 1 drive strength px.0 0 pull -u p d isable px.0. table 58 . gpio drive stren gt h control bits descriptions control b its v alue description 00 medium drive strength . 01 low drive strength . 1x high drive strength . 3.6 3.4 3.2 3.0 2.8 2.6 2.4 2.2 2.0 ?24 ?18 ?12 ?6 0 6 12 18 24 load current (ma) voltage on each pin (v) 08675-031 high drive strength medium drive strength low drive strength figure 37 . programmable s treng t h for h igh l evel 0.5 0.4 0.3 0.2 0.1 0 ?0.1 ?0.2 ?0.3 ?0.4 ?24 ?18 ?12 ?6 0 6 12 18 24 load current (ma) voltage on each pin (v) 08675-032 high drive strength medium drive strength low drive strength figure 38 . programmable s treng th for low l evel t he drive streng t h bits can be written one time only after reset. more writing to related bits has no effect on changing drive strength. the gpio drive strength and pull - up disable is not always adjustable for the gpio port. some control bits cannot be changed (s ee table 59 ). table 59 . gpxpar control bits access descriptions 1 bit gp0par gp1par gp2par 31 reserved reserved reserved 30 to 29 r/w r/w reserved 28 r/w r/w reserved 27 reserved reserved reserved 26 to 26 r/w r/w reserved 24 r/w r/w reserved 23 reserved reserved reserved 22 to 21 r/w r (b00) reserved 20 r/w r/w reserved 19 reserved reserved reserved 18 to 17 r (b00) r (b00) r (b00) 16 r/w r/w r/w 15 reserved reserved reserved 14 to 13 r (b00) r (b00) r (b00) 12 r/w r/w r/w 11 reserved reserved reserved rev. e
data sheet aduc7023 | page 53 of 96 bit gp0par gp1par gp2par 10 to 9 r (b00) r (b00) r (b00) 8 r/w r/w r/w 7 reserved reserved reserved 6 to 5 r (b00) r (b00) reserved 4 r/w r/w reserved 3 reserved reserved rese rv ed 2 to 1 r (b00) r (b00) r (b00) 0 r/w r/w r (b0) 1 when p2.0 is configured as ain12, the internal pull - up resistor cannot be disabled. gp 0 dat register name address default value access gp0dat 0xfffff420 0x000000xx r/w gp1dat 0xfffff430 0x000000x x r/w gp2dat 0xfffff440 0x000000xx r/w gpxdat are port x configuration and data registers. they configure the direction of the gpio pins of port x, set the output value for the pins configured as output, and store the input value of the pins configured a s input. table 60 . gpxdat mmr bit descriptions bit description 31 to 24 direction of the d ata. this bit is s et to 1 by the user to configure the gpio pin as an output. this bit is c leared to 0 by the user to configure the gpi o pin as an input. 23 to 16 port x d ata o utput. 15 to 8 reflect the state of port x pins at reset (read o nly). 7 to 0 port x d ata i nput ( r ead o nly). gp 0 set register name : gp0set address : 0xfffff424 default v alue : 0x000000xx access : w rite function : gp0set is a data set port x register. gp 1 set register name : gp1set address : 0xfffff434 default v alue : 0x000000xx access : w rite function: gp1 set is a data set port x register. gp 2 set register name : gp2 set address : 0xff fff444 default v alue : 0x000000x x access : w rite function: gp2 set is a data set port x register. table 61 . gpxset mmr bit descriptions bit description 31 to 24 reserved. 23 to 16 data p ort x. this bit is s et to 1 by the user to set bit on port x; this bit a lso sets the corresponding bit in the gpxdat mmr. this bit is c leared to 0 by the user; this bit does not affect the data out. 15 to 0 reserved. gp 0 clr registers name: gp0clr address: 0xfffff428 default value: 0x000000xx access: write function: gp 0clr is a data clear port x register. gp 1 clr registers name: gp1clr address: 0xfffff438 default value: 0x000000xx access: write function: gp1clr is a data clear port x register. gp 2 clr registers name: gp2clr address: 0xfffff448 default value: 0x000000xx access: write function: gp2clr is a data clear port x register. rev. e
aduc7023 data sheet | page 54 of 96 table 62 . gpxclr mmr bit descriptions bit description 31 to 24 reserved. 23 to 16 data p ort x clear bit. this bit is set to 1 by the user to clear the bi t on port x; this bit also clears the corresponding bit in the gpxdat mmr. this bit is cleared to 0 by the user; this bit does not affect the data out. 15 to 0 reserved. serial peripheral in terface the aduc7023 integrates a complete hardware serial per iphera l interface (spi) on chip. spi is an industry standard, synchronous serial interface that allows eight bits of data to be synchronously transmitted and simultaneously received, that is, full duplex up to a maximum bit rate of 20 mbps. the spi port c an be configured for master or slave operation and typically consists of four pins: miso, mosi, sclk, and spi ss . miso (master in, slave out) pin the miso pin is configured as an input line in master mode and an output line in slave mode. the miso line on the master (data in) should be connected to the miso line in the slave device (data out). the data is transferred as byte wide (8 - bit) serial data, msb first. mosi (master out, slave in) pin the mosi pin is configured as an output line in master mode and an input line in slave mode. the mosi line on the master (data out) should be connected to the mosi line in the slave device (data in). the data is transferred as byte wide (8 - bit) serial data, msb first. sclk (serial clock i/o) pin the mas ter serial clock (sclk) synchronizes the data being transmitted and received through the mosi sclk period. therefore, a byte is transmitted/received after eight sclk periods. the sclk pin is configured as an output in master mode and as an input in slave m ode. in master mode, polarity and phase of the clock are controlled by the spicon register, and the bit rate is defined in the spidiv register as follows: )1(2 spidiv f f uclk clock serial + = where: f uclk is the clock selected by powcon1 bit 7 to bit 6. the maximum spe ed of the spi clock is independent on the clock divider bits. in s lave mode, the spicon register must be configured with the phase and polarity of the expected input clock. the slave accepts data from an external master up to 10 mbps. in both m aster and sl ave modes, data is transmitted on one edge of the sclk signal and sampled on the other. therefore, it is important that the polarity and phase are configured the same for the master and slave devices. spi chip select ( ss input) pin in spi slave mode, a transfer is initiated by the assertion of ss , which is an active low input signal. the spi port then transmits and receives 8 - bit data until the transfer is concluded by deassertion of ss . in slave mode, ss is always an input. in spi master mode, the ss is an active low output signal. it asserts itself automatically at the beginning of a transfer and deasserts itself upon completion. configuring external p ins for spi f un ctionality p1.1 is the s lave c hip s elect pin. in s lave mode, this pin is an input and must be driven low by the m aster. in m aster mode, this pin is an output and goes low at the beginning of a transfer and high at the end of a transfer. p 1.0 is the s cl k pi n. p0.6 is the m aster i n, s lave o ut (miso) pin. p0.7 is the m aster o ut, s lave i n (mosi) pin. to configure these pins for spi mode, see the general - purpose input/output section. spi registers the following mmr registers control the spi interface: spista, spirx, spitx, spidiv, and spicon. spi status register name: spista address: 0xffff0a00 default value: 0x0000 access: read function: this 32 - bit mmr contains the status of the spi interface in both master and slave modes. rev. e
data sheet aduc7023 | page 55 of 96 table 63 . spista mmr bit designations bit name description 15 to 12 reserved bits. 11 spirex spi rx fifo excess bytes present. this bit is set when there are more bytes in the rx fifo than indicated in the spimde bits in spic on this bit is cleared when the number of bytes in the fifo is equal or less than the number in spimde. 10 to 8 spirxfsta[2:0] spi rx fifo s tatus b its. [000] = rx fifo is empty . [001] = 1 valid byte in the fifo . [010] = 2 valid byte in the fif o. [011] = 3 valid byte in the fifo . [100] = 4 valid byte in the fifo . 7 spifof spi rx fifo o verflow s tatus b it. this bit is s et when the rx fifo is full when new data is loaded to the fifo. this bit generates an interrupt except when spirflh is set in spicon. this bit is c leared when the spista register is read. 6 spirxirq spi rx irq status b it. this bit is s et when a receive interrupt occurs. this bit is set when spitmde in spicon is cleared and the required number of bytes have been rece ived. this bit is c le ared when the spista regi ster is read. 5 spitxirq spi tx irq s tatus b it. this bit is s et when a transmit interrupt occurs. this bit is set when spitmde in spicon is set and the required number of bytes have been transmitted. this bit is c leared when the spista register is read. 4 spitxuf spi tx fifo u nderflow. this bit is set when a transmit is initiated without any valid data in the tx fifo. this bit generates an interrupt except when spitflh is set in spicon. this bit is c leared when the spista register is read. 3 to 1 spitxfsta[2:0] spi tx fifo status b its. [000] = tx fifo is empty. [001] = 1 valid byte in the fifo. [010] = 2 valid byte in the fifo. [011] = 3 valid byte in the fifo. [100] = 4 valid byt e in the fifo. 0 spiista spi i nterrup t status b it. this bit is s et to 1 when an spi based interrupt occurs. this bit is c leared after reading spista. spirx register name: spirx address: 0xffff0a04 default value: 0x00 access: read function: t his 8 - bit mmr is the spi receive register. spitx register name: spitx address: 0xffff0a08 default value: 0xxx access: write function: this 8 - bit mmr is the spi transmit register. rev. e
aduc7023 data sheet | page 56 of 96 spidiv register name: spidiv address: 0xffff0a0c default valu e: 0x00 access: read/w rite function: this 6- bit mmr is the spi baud rate selection register. (note that the maximum value of this mmr is 0x3f .) spi control register name: spicon address: 0xffff0a10 default value: 0x0000 access: read/write function: this 16 - bit mmr configures the spi peripheral in both master and slave modes. rev. e
data sheet aduc7023 | page 57 of 96 table 64 . spicon mmr bit designations bit name description 15 to 14 spimde spi irq m ode b its. these bits configure when the tx/rx interrupts occur in a transfer . [00] = tx interrupt occurs whe n one byte has been transferred. rx interrupt occurs when one or more bytes have been received into the fifo. [01] = tx interrupt occurs when two bytes has been transferred. rx interrupt occurs when two or m ore bytes have been received into the fifo. [10] = tx interrupt occurs when three bytes has been transferred. rx interrupt occurs when three or more bytes have been received into the fifo. [11] = tx interrupt occurs when four bytes has been transferr ed. rx interrupt occurs when the rx fifo is full or four bytes present . 13 spitflh spi tx fifo f lush e nable b it. this bit is set to flush the tx fifo. this bit does not clear itself and should be toggled if a single flush is required. if this bit is left high, then either the last transmitted value or 0x00 is transmitted depending on the spizen bit. any writes to the tx fifo are ignored while this bit is set. this bit is c lear ed to disable tx fifo flushing. 12 spirflh spi rx fifo f lush e nable b it. this bit is s et to flush the rx fifo. this bit does not clear itself and should be toggled if a single flush is required. if this bit is set , all incoming data is ignored and no interrupts are generated. if set and spitmde = 0, a read of the rx fifo initiate s a transfer. this bit is c lear ed to disable rx fifo flushing. 11 spicont continuous t ransfer e nable. this bit is s et by the user to enable continuous transfer. in master mode, the transfer continues until no valid data is available in the tx register . ss is asserted and remains asserted for the duration of each 8 - bit serial transfer until tx is empty. this bit is c leared by the user to disable continuous transfer. each transfer consists of a single 8 - bit serial t ransfer. if valid data exists in the spitx register, then a new transfer is initiated after a stall period of 1 serial clock cycle. 10 spilp loop b ack e nable bit. this bit is s et by the user to connect miso to mosi and test software. this bit is c l eared by the user to be in normal mode. 9 spioen slave miso o utput enable bit. this bit is set for miso to operate as normal. this bit is c lear ed to disable the output driver on the miso pin. the miso pin is open -d rain when this bit is clear. 8 sp irow spirx o verflow o verwrite e nable. this bit is s et by the user; the valid data in the rx register is overwritten by the new serial byte received. this bit is c leared by the user; the new serial byte received is discarded. 7 spizen spi transmit z e ros when tx fifo is empty. this bit is set to transmit 0x00 when there is no valid data in the tx fifo. this bit is c lear ed to transmit the last transmitted value when there is no valid data in the tx fifo. 6 spitmde spi t ransfer and i nterrupt m ode. this bit is s et by the user to initiate transfer with a write to the spitx register. interrupt only occurs when tx is empty. this bit is c leared by the user to initiate transfer with a read of the spirx register. interrupt only occurs when rx is ful l. 5 spilf lsb first transfer enable b it. this bit is s et by the user; the lsb is transmitted first . this bit is c leared by the user ; the msb is transmitted first. 4 spiwom spi wired or m ode enable bit . this bit is set to 1 enable open - drain da ta o utput. external pull - ups are required on data out pins. this bit is c lear ed for normal output levels. 3 spicpo s erial clock polarity mode b it. this bit is s et by the user; the serial clock idles high . this bit is c leared by the user; the seri al clock idles low. 2 spicph serial clock phase mode b it. this bit is s et by the user; the serial clock pulses at the beginning of each serial bit transfer. this bit is c leared by the user; the serial clock pulses at the end of each serial bit trans fer. rev. e
aduc7023 data sheet | page 58 of 96 bit name description 1 spimen master m ode e nable b it . this bit is s et by the user to enable master mode . this bit is c leared by the user to enable slave mode . 0 spien spi e nable bit. this bit is s et by the user to enable the spi. this bit is c leared by the user to disable the spi. rev. e
data sheet aduc7023 | page 59 of 96 i 2 c the aduc7023 incorporates two i 2 c peripheral s that may be configured as a fully i 2 c- compatible i 2 c bus master device or as a fully i 2 c bus - compatible s lave device . the two pins used for data transfer, sda and scl, are config ured in a wire - and format that allows arbitration in a multimaster system. these pins require external pull - up resistors. typical pull - up values are between 4.7 k? and 10 k?. the i 2 c bus peripheral address in the i 2 c bus system is pro - grammed by the user. this id can be modified any time a transfer is not in progress. the user can configure the interface to respond to four slave addresses. the transfer sequence of an i 2 c system consists of a master device initiating a transfer by generating a start conditio n while the bus is idle. the master transmits the slave device address and the directio n of the data transfer (r ead or /w rite) during the initial address transfer. if the master does not lose arbitrat ion and the slave acknowledges the data , transfer is initiated. this continues until the master issues a stop condition and the bus becomes idle. the i 2 c peripheral can only be configured as a master or slave at any given time. the same i 2 c channel cannot simultaneously support master and slave modes. the i 2 c in terface on the aduc7023 includes s upport for r epeated s tart c onditions. in m aster mode, the aduc7023 can be programmed to generate a r epeated s tart. in s lave mode, the aduc7023 recognizes r epeated s tart conditions. in m aster and s lave mode, the part recogn izes both 7 - bit and 10 - bit bus addresses . in i 2 c m aster mode, the aduc7023 supports continuous reads from a single slave up to 512 bytes in a single transfer sequence. clock stretching is supported in both m aster and s lave modes. in s lave mode, the aduc702 3 can be programmed to return a nack. this allows the validation of checksum bytes at the end of i2c transfers. bus arbitration in m aster mode is supported. internal and external loopback modes are supported for i 2 c hardware testing. in loopback mode. the t ransmit and receive circuits in both m aster and s lave mode contain 2 - byte fifos . status bits are available to the user to control these fifos. configuring external p ins for i 2 c f unctionality the i 2 c pins of the aduc7023 device are p0. 4 and p0. 5 for i 2 c0 a nd p 0.6 and p0.7 for i 2 c1. p0.4 and p0.6 are the i 2 c clock signals and p0.5 and p0.7 are the i 2 c data signals. for instance, to configure i 2 c0 pins (scl0, sda0), bit 16 and bit 20 of the gp0con register must be set to 1 to enable i 2 c mode. on the other ha nd, to configure i 2 c1 pins (scl1, sda1), bit 25 and bit 29 of the gp0 con register must be set to 1 to enable i 2 c mode, as shown in the gpio section. i 2 c1 function is available at p 0.6 and p0.7 on 32 - lead and 36 - ball package s and available at p1.6 and p1.7 on 40- lead package . serial clock generat ion the i 2 c master in the system generates the serial clock for a transfer. the master channel can be configured to operate in fast mode (400 khz) or standard mode (100 khz). the bit rate is defined in the i2cdiv mmr as follows: ) (2 )2( divl divh +++ = uclk clock serial f f where: f uclk is the clock before the clock divider and the clock sel ected by powcon1 bit 4 to bit 0. divh is the high period of the clock. divl is the low period of the clock. thus, for 100 khz operation , divh = divl = 0xcf and for 400 khz , divh = 0x28, divl = 0x3c the i2cdiv register corresponds to divh:divl . i 2 c bus addresses slave mode in slave mode, the registers i2c x id0, i2c x id1, i2c x id2, and i2c x id3 contain the device ids. the device compares the four i2c x idx regi sters to the address byte received from the bus m aster. to be correctly addressed, the 7msbs of either id register must be identical to that of the 7msbs of the first received address byte. the lsb of the id registers (the transfer direction bit) is ignore d in the process of address recognition. the aduc7023 also supports 10 - bit addressing mode. when bit 1 of i2c x scon (adr10en bit) is set to 1, then one 10 - bit address is supported in slave mode and is stored in registers i2c x id0 and i2c x id1. the 10 - bit addr ess is derived as follows: i2c x id0[0] is the read/write bit and is not part of the i 2 c address. i2c x id0[7:1] = address b its[6:0]. i2c x id1[2:0] = address b its[9:7]. i2c x id1[7:3] must be set to 11110b. master mode in master mode, the i2c x adr0 register is pro grammed with the i 2 c address of the device. in 7 - bit address mode, i2c x adr0[7:1] are set to the device address. i2c x adr0[0] is the read/write bit. in 10 - bit address mode, the 10 - bit address is created as follows: i2c xadr0[7:3] must be set to 11110b. i2c xa dr0[2:1] = address bits[9:8]. i2c x adr1[7:0] = address bits[7:0]. i2c x adr0[0] is the read/write bit. rev. e
aduc7023 data sheet | page 60 of 96 i 2 c registers the i 2 c peripheral interface s consists of a number of mmrs. these are described in the following section. i 2 c master registers i 2 c master co ntrol register s, i2cxmcon name: i2c0mcon, i2c1mcon address: 0xffff0800 , 0xffff0900 default value: 0x0000 , 0x0000 access: read/write function: th ese 16- bit mmr s configure the i 2 c peripheral in master mode. table 65 . i2c xmc on mmr bit designations bit name description 15 to 9 reserved. these bits are reserved and should not be written to . 8 i2cmceni i 2 c t ransmission c omplete i nterrupt e nable b it . this bit is set to enable an interrupt on detecting a s top condition on th e i 2 c bus. this bit c lear s this interrupt source. 7 i2cnackeni i 2 c no acknowledge r eceived i nterrupt e nable b it. this bit is set to enable interrupts when the i 2 c master receives a no acknowledge . this bit c lear s this interrupt source. 6 i2calen i i 2 c a rbitration l ost i nterrupt e nable b it. this bit is s et to enable interrupts when the i 2 c master has lost in trying to gain control of the i 2 c bus. this bit c lear s this interrupt source. 5 i2cmteni i 2 c t ransmit i nterrupt e nable b it. this bit is s et to enable interrupts when the i 2 c master has transmitted a byte . this bit c lear s this interrupt source. 4 i2cmreni i 2 c r eceive i nterrupt e nable b it. this bit is s et to enable interrupts when the i 2 c master receives data . this bit is c lear ed by the user to disable interrupts when the i 2 c master is receiving data . 3 i2cmsen i 2 c m aster scl s tretch e nable b it. this bit is s et to 1 to enable c lock stretching. when scl is low, setting this bit force s the device to hold scl low until i2cmsen is cleared. if scl is high, setting this bit force s the device to hold scl low after the next falling edge. this bit is c leared to disable clock stretching. 2 i2cilen i 2 c i nternal l oopback e nable b it . this bit is s et to enable loopback test mode. in this mode, the scl and sda signals are connected internally to their r espective input signals. this bit is c leared by the user to disable l oopback mode. 1 i2cbd i 2 c m aster b ackoff d isable b it . this bit is s et to allow the device to compete for con trol of the bus even if another device is currently driving a s tart c ondition . this bit is c leared to back off until the i 2 c bus becomes free. 0 i2cmen i 2 c m aster e nable b it. this bit is s et by the user to enable i 2 c m aster mode. this bit is c lea red to disable i 2 c m aster mode. rev. e
data sheet aduc7023 | page 61 of 96 i 2 c master status register s, i2cxmsta name: i2c 0 msta , i2c 1 msta address: 0xffff080 4, 0xffff0904 default value: 0x0000 , 0x0000 access: read function: th ese 16- bit mmr s are the i 2 c status register s in master mode. tab le 66 . i2c x msta mmr bit designations bit name description 15 to 11 reserved. these bits are reserved. 10 i2cbbusy i 2 c b us busy status bit. this bit is set to 1 when a s tart condition is detected on the i 2 c bus. this bit is cleared when a s top condition is detected on the bus . 9 i2cmrxfo master rx fifo o verflow. this bit is set to 1 when a byte is written to the rx fifo when it is already full. this bit is cleared in all other conditions. 8 i2cmtc i 2 c t ransmission c omplete s tatus bit . this bit is set to 1 when a transmission is complete between the m aster and the s lave with which it was communicating . if the i2cmceni bit in i2cxmcon is set, an interrupt is generated when this bit is set. this bit c lear s this in terrupt source. 7 i2cmna i 2 c m aster no acknowledge d ata bit . this bit is set to 1 when a no acknowledge condition is received by the m aster in response to a d ata write transfer. if the i2cnackeni bit in i2cxmcon is set, an interrupt is generated when t his bit is set. this bit is cleared in all other conditions. 6 i2cmbusy i 2 c m aster b usy s tatus bit . this bit is s et to 1 when the m aster is busy processing a transaction. this bit is c leared if the m aster is ready or if another m aster device has control of the bus . 5 i2cal i 2 c arbitration lost status bit. this bit is set to 1 when the i 2 c master has lost in trying to gain control of the i 2 c bus. if the i2caleni bit in i2c1mcon is set, an interrupt is generated when this bit is set. this bit is cleared in all other conditions. 4 i2cmna i 2 c m aster no acknowledge a ddress bit . this bit is set to 1 when a no acknowledge condition is received b y the master in response to an a ddress. if the i2cnackeni bit in i2c1mcon is set, an interrupt is ge nerated when this bit is set. this bit is cleared in all other conditions. 3 i2cmrxq i 2 c m aster receive r equest bit . this bit is set to 1 when data enters the rx fifo. if the i2cmreni in i2c1mcon is set, an interrupt is generated. this bit is cle ared in all other conditions. 2 i2cmtxq i 2 c m aster t ransmit r equest bit . this bit becomes high if the tx fifo is empty or only contains one byte and the m aster has transmitted an a ddress and write. if the i2cmteni bit in i2c1mcon is set, an interrupt is generated when this bit is set. this bit is cleared in all other conditions. 1 to 0 i2cmtfsta i 2 c m aster tx fifo s tatus bits. 00 = i 2 c m aster tx fifo empty . 01 = reserved . 10 = 1 byte in m aster tx fifo . 11 = i 2 c m aster tx fifo f ull. rev. e
aduc7023 data sheet | page 62 of 96 i 2 c master receive register s, i2cxmrx name: i2c 0 mrx , i2c 1 mrx address: 0xffff080 8, 0xffff0908 default value: 0x00 access: read only function: th ese 8- bit mmr s are the i 2 c master receive registers. i 2 c master transmit register s , i2cxmtx name: i2c 0 mtx , i2c 1 mtx address: 0xffff080 c 0xffff090c default value: 0x00 , 0x00 access: write only function: th ese 8- bit mmr s are the i 2 c master transmit registers i 2 c master read count register s , i2cxmcnt0 name: i2c 0 mcnt0 , i2c 1 mcnt0 address: 0xffff081 0, 0xffff091 0 default value: 0x0000 , 0x0000 access: read/write function: th ese 16- bit mmr s hold the required number of bytes when the master begins a read sequence from a slave device. table 67 . i2c x mcnt0 mmr bit descriptions : address = 0 xffff0810, 0xffff0910. default value = 0x0000 bit name description 15 to 9 reserved. 8 i2crecnt this bit is set if greater than 256 bytes are required from the slave. this bit is c lear ed when reading 256 bytes or less. 7 to 0 i2crcnt these eight bi ts hold the number of bytes required during a slave read sequence, minus 1. if only a single byte is required, these bits should be set to 0. i 2 c master current read count register s, i2cxmcnt1 name: i2c 0 mcnt1 , i2c 1 mcnt1 address: 0xffff081 4, 0xffff0 914 default value: 0x00 , 0x00 access: read function: th ese 8- bit mmr s hold the number of bytes received thus far during a read sequence with a slave device. i 2 c address 0 register s, i2cxadr0 name: i2c 0 adr0 , i2c 1 adr0 address: 0xffff081 8, 0xffff0918 de fault value: 0x00 access: read/write function: th ese 8- bit mmr s hold the 7 - bit slave address and the read/write bit when the master begins communicating with a slave. table 68 . i2cxadr0 mmr in 7 - bit address mode: address = 0 xff ff0818, 0xffff0918. default value = 0x00 bit name description 7 to 1 i2cadr these bits contain the 7 - bit address of the required slave device. 0 r/w bit 0 is the read/write bit. when this bit = 1, a read sequence is requested. when this bit = 0, a write sequence is requested. table 69 . i2c x adr0 mmr in 10 - bit address mode bit name description 7 to 3 these bit s must be set to [11110b] in 10 -b it address mode. 2 to 1 i2cmadr these bits contai n addr[9:8] in 10 - bit address mode. 0 r/w read/write b it. when this bit = 1, a read sequence is requested. when this bit = 0, a write sequence is requested. rev. e
data sheet aduc7023 | page 63 of 96 i 2 c address 1 register s, i2cxadr1 name: i2c 0 adr1 , i2c 1 adr1 address: 0xffff081 c , 0xffff091c default value: 0x00 access: read/write function: th ese 8- bit mmr s are used in 10 - bit addressing mode only. th ese registers contain the least significant byte of the address. table 70 . i2c x adr1 mmr in 10 - bit address mode bit name description 7 to 0 i2cladr these bits contai n addr[7:0] in 10 - bit address mode. i 2 c master clock control register , i2cxdiv name: i2c 0 div , i2c 1 div address: 0xffff082 4, 0xffff0924 default value: 0x1f1f access: read/write function: th ese mmr s control the frequency of th e i 2 c clock generated by the master on to the scl pin. for further details, see the i2c initial section. table 71 . i2c x div mmr bit name description 15 to 8 divh these bits control the duration of the h igh period of scl. 7 to 0 divl these bits control the duration of the low period of scl. i 2 c slave registers i 2 c slave control register s, i2cxscon name: i2c0scon, i2c1scon address: 0xffff082 8, 0xffff0928 default value: 0x0000 access: read/write function: th ese 16- bit mmr s configure the i 2 c peripheral in slave mode. table 72. i2cxscon mmr bit designations bit name description 15 to 11 reserved bits. 10 i2cstxeni slave t ransmit i nterrupt e nable bi t. this bit is set to enable an interrupt after a s lave transmits a byte. this bit c lear s this interrupt source. 9 i2csrxeni slave r eceive i nterrupt e nable bit. this bit is set to enable an interrupt after the s lave receives data. this bit c le ar s this interrupt source. 8 i2csseni i 2 c s top c ondition detected i nterrupt e nable bit this bit is set to enable an interrupt on detecting a s top condition on the i 2 c bus. this bit c lear s this interrupt source. 7 i2cnacken i 2 c no acknowledge enable bit. this bit is set to no acknowledge the next byte in the transmission sequence. this bit is c lear ed to let the h ardware control the acknowledge/no acknowledge sequence. 6 i2cssen i 2 c s lave scl stretch e nable bit. this bit is set to 1 to enabl e c lock stretching. when scl is low, setting this bit force s the device to hold scl low until i2cssen is cleared. if scl is high, setting this bit force s the device to hold scl low after the next falling edge. this bit is c lear ed to disable clock stretc hing. 5 i2cseten i 2 c e arly t ransmit interrupt e nable bit. this bit is set to enable a t ransmit r equest interrupt just after the positive edge of scl during the r ead bit t ransmission. this bit is c lear ed to enable a t ransmit r equest interrupt just af ter the negative edge of scl during the r ead bit t ransmission. rev. e
aduc7023 data sheet | page 64 of 96 bit name description 4 i2cgcclr i 2 c g eneral c all s tatus and id c lear bit. writing a 1 to this bit clear s the g eneral c all s tatus and id bits in the i2c x ssta register. this bit is c lear ed a t all other times. 3 i2chgcen i 2 c h ardware g eneral c all e nable. hardware general call enable. when this bit and bit 2 are set, and having received a general call (address 0x00) and a data byte, the device checks the contents of the i2c x alt against the receive register. if the contents match, the device has received a hardware general call. this is used if a device needs urgent attention from a master device without knowing which master it needs to turn to. this is a broadcast message to all master devices on the bus . the adu c7023 watch es for these addresses. the device that requires attention embeds its own address into the message. all masters listen, and the one that can handle the device contacts its slave and acts appropriately. the lsb of the i2c x alt register should always be written to 1, as per the i 2 c january 2000 bus specification. this bit and i2cgcen are set to enable h ardware g eneral call recognition in s lave mode. this bit is c lear ed to disable recognition of h ardware g eneral c all commands. 2 i2cgcen i 2 c g eneral c all e nable. this bit is s et to enable the slave device to acknowledge an i 2 c general call, address 0x00 (write). the device then recognizes a data bit. if it receives a 0x06 (reset and write programmable part of the slave address by hardware) as th e data byte, the i 2 c interface resets as per the i 2 c january 2000 bus specification. this command can be used to reset an entire i 2 c system. if it receives a 0x04 (write programmable part of the slave address by hardware) as the data byte, the general cal l interrupt status bit sets on any general call. the user must take corrective action by reprogramming the device address. this bit is s et to allow the s lave acknowledge i 2 c general c all commands. this bit is c lear ed to disable recognition of genera l c all commands. 1 adr10en i 2 c 10 - bit address mode. this bit is set to 1 to enable 10 - bit address mode. this bit is cleared to 0 to enable normal address mode. 0 i2csen i 2 c s lave e nable bit. this bit is set by user to enable i 2 c s lave mode. t his bit is cleared by the user to disable i 2 c s lave mode. i 2 c slave status register s , i2cxssta name: i2c 0 ssta , i2c 1 ssta address: 0xffff082 c, 0xffff092c default value: 0x0000 , 0x0000 access: read/write function: th ese 16- bit mmr s are the i 2 c status re gisters in slave mode. rev. e
data sheet aduc7023 | page 65 of 96 table 73 . i2c x ssta mmr bit designations bit name description 15 reserved bit. 14 i2csta this bit is set to 1 if: a s tart c ondition followed by a matching address is detected. it is also set if a s tart byte (0x01) is received. if g eneral c alls are enabled and a g eneral c all code of (0x00) is received. this bit is cleared on receiving a s top condition . 13 i2creps this bit is set to 1 if a repeated start condition is detected. this bit is cleared on receiving a s top condition . 12 to 11 i2cid[1:0] i 2 c a ddress matching register. these bits indicate which i2c x idx register matches the received address. [00] = r eceived address matches i2c x id0 . [01] = r eceived address matches i2c x id1 . [ 10] = re ceived address matches i2c x id2 . [11] = r eceived address matches i2c x id3 . 10 i2css i 2 c s top c ondition after s tart detected bit. this bit is set to 1 when a s top conditio n is detected after a previous s tart and matching address. when the i2css eni bit in i2cxscon is set, an interrupt is generated. this bit is cleared by reading this register. 9 to 8 i2cgcid[1:0] i 2 c g eneral c all id bits . [00] = n o general c all received. [01] = g eneral c all reset and program a ddress. [10] = g eneral p rogram a ddress. [11] = g eneral c all matching alternative id . these bits are not cleared by a g eneral c all reset command. these bits are c lear ed by writing a 1 to the i2cgcclr bit in i2cxscon . 7 i2cgc i 2 c g eneral c all s tatus bit . this bit is se t to 1 if the s lave receives a g eneral c all command of any type. if the command received is a r eset command, then all registers return to their default state. if the command received is a h ardware g eneral c all, the rx fifo holds the second byte of the comm and , and this c an be compared with the i2c x alt register. this bit is c lear ed by writing a 1 to the i2cgcclr bit in i2cxscon . 6 i2csbusy i 2 c s lave b usy s tatus bit . this bit is set to 1 when the slave receives a s tart condition . this bit is cleared by hardware if t he received address does not match any of the i2c x idx registers , t he s lave device receives a s top condition or i f a r epeated s tart address does not match any of the i2c x idx registers . 5 i2csna i 2 c s lave no acknowledge d ata bit . this bi t is set to 1 when the s lave respond s to a bus address with a no acknowledge . this bit is asserted under the following conditions: i f no acknowledge is returned because there is no data in the tx fifo or i f the i2cnacken bit is set in the i2cxscon register . this bit is cleared in all other conditions. 4 i2csrxfo slave rx fifo o verflow. this bit is set to 1 when a byte is written to the rx fifo when it is already full. this bit is cleared in all other conditions. 3 i2csrxq i 2 c s lave r eceive r equ est bit . this bit is set to 1 when the slave rx fifo is not empty. this bit causes an interrupt to occur if the i2csrxeni bit in i2cxscon is set. the rx fifo must be read or flushed to clear this bit . 2 i2cstxq i 2 c s lave t ransmit r equest bit . thi s bit is set to 1 when the slave receives a matching address followed by a read. if the i2cseten bit in i2cxscon is = 0, , this bit goes high just after the negative edge of scl during the read bit t ransmission. if the i2cseten bit in i2cxscon is = 1, this bit goes high just after the positive edge of scl during the r ead bit tr ansmission. this bit cause s an interrupt to occur if the i2cstxeni bit in i2cxscon is set. this bit is cleared in all other conditions. rev. e
aduc7023 data sheet | page 66 of 96 bit name description 1 i2cstfe i 2 c s lave fifo underflow s tatus b it . this bit goes high if the tx fifo is empty when a m aster requests data from the s lave. this bit is asserted at the rising edge of scl during the r ead bit. this bit is cleared in all other conditions. 0 i2cetsta i 2 c slave e arly t ransmit fifo s tat us bit . if the i2cseten bit in i2cxscon is = 0, this bit goes high if the s lave tx fifo is empty . if the i2cseten bit in i2cxscon is = 1, this bit goes high just after the positive edge of scl during the w rite bit t ransmission. this bit asserts once onl y for a transfer. this bit is cleared after being read. i 2 c slave receive register s , i2cxsrx name: i2c 0 srx , i2c 1 srx address: 0xffff083 0, 0xffff0930 default value: 0x00 access: read function: th ese 8- bit mmr s are the i 2 c slave receive register. i 2 c slave transmit register s , i2cxstx name: i2c 0 stx , i2c 1 stx address: 0xffff083 4, 0xffff0934 default value: 0x00 access: write function: these 8- bit mmr s are the i 2 c slave transmit registers. i 2 c hardware general call recognition register s , i2cxalt nam e: i2c 0 alt , i2c 1 alt address: 0xffff083 8, 0xffff0938 default value: 0x00 access: read/write function: th ese 8- bit mmr s are used with hardware general calls when the i2cxscon b it 3 is set to 1. th ese register s are used in cases where a master is unable t o generate an address for a slave, and instead, the slave must generate the address for the master. i 2 c slave device id registers , i2cxidx name: i2c0idx, i2c1idx addresses: 0xffff093c = i2c 1 id0 0xffff083 c = i2c 0 id0 0xffff0940 = i2c 1 id1 0xffff084 0 = i2c 0 id1 0xffff0944 = i2c 1 id2 0xffff084 4 = i2c 0 id2 0xffff0948 = i2c 1 id3 0xffff084 8 = i2c 0 id3 default value: 0x00 access: read/write function: these 8 - bit mmrs are programmed with i 2 c bus ids of the slave. see the i 2 c bu s addresses section for further details. i 2 c common r egisters i 2 c fifo status registers, i2cxfsta name: i2c 0 fsta , i2c 1 fsta address: 0xffff084 c, 0xffff094c default va lue: 0x0000 access: read/write function: these 16 - bit mmrs contain the status of the rx/tx fifos in both master and slave modes. rev. e
data sheet aduc7023 | page 67 of 96 table 74 . i2c x fsta mmr bit designations bit name description 15 to 10 reserved b its. 9 i2cfmtx this bit is set to 1 to flush the master tx fifo. 8 i2cfstx this bit is set to 1 to flush the slave tx fifo. 7 to 6 i2cmrxsta i 2 c m aster r eceive fifo s tatus b its. [00] = fifo empty. [01] = byte written to fifo. [10] = 1 byte in fifo. [11] = fifo full. 5 to 4 i2cmt xsta i 2 c m aster t ransmit fifo s tatus b its. [00] = fif o empty. [01] = byte written to fifo. [10] = 1 byte in fifo. [11] = fifo full. 3 to 2 i2csrxsta i 2 c s lave r eceive fifo s tatus b its. [00] = fifo empty [01] = byte written to fifo [10] = 1 byte in fifo [11] = fifo full 1 to 0 i2cstxsta i 2 c s lave t ransmit fifo s tatus b its. [00] = fifo empty. [01] = byte written to fifo. [10] = 1 byte in fifo. [11] = fifo full. programmable logic a rray (pla) every aduc7023 integrates a fully programmable logic array (pla ) consisting of sixtee n pla elements . each pla element contains a two - input look - up table that can be configured to generate any logic output function based on two inputs and a flip - flop. this is represented in figure 39. 08675-033 4 2 0 1 3 a b look-up table figure 39 . pla element in total, 20 gpio pins are available on the aduc7023 for the pla. these include 11 input pins and nine output pins, which need to be configured in the gpxcon register as pla pins before using the pla. the pla is configured via a set of user mmrs. the output(s) of the pla can be routed to the internal interrupt system, to the conv start signal of the adc, to an mmr, or to any of the eight pla output pins. table 75 . element input/output pl a block 0 pla block 1 element input output element input output 0 p 0.4 p0 .7 8 p 0.0 p 0.2 1 p 0.5 p1 .0 9 p0.1 p0.3 2 p0.6 p 1.1 10 p2.4 p2.5 1 3 p1.2 p1.4 11 nc nc 4 p1.3 p1.5 12 nc nc 5 p1.6 p2.1 1 13 nc nc 6 p1.7 p2.2 14 nc nc 7 p2.0 p2.3 15 nc nc 1 internal pins only. r ead via gpxdat register. pla mmrs interface the pla peripheral interface consists of the 22 mmrs described in the following sections. plaelmx registers pl aelmx are element 0 to element 15 control registers. they configure the input an d output mux of each element, select the function in the look - up tabl e, and bypass/use the flip - flop (s ee table 77 ). table 76. plaelmx registers name address default value access plaelm0 0xffff0b00 0x0000 r/w plaelm1 0xffff0b04 0x0000 r/w plaelm2 0xffff0b08 0x0000 r/w plaelm3 0xffff0b0c 0x0000 r/w plaelm4 0xffff0b10 0x0000 r/w plaelm5 0xffff0b14 0x0000 r/w plaelm6 0xffff0b18 0x0000 r/w plaelm7 0xffff0b1c 0x0000 r/w plaelm8 0xffff0b 20 0x0000 r/w plaelm9 0xffff0b2 4 0x0000 r/w plaelm10 0xffff0b2 8 0x0000 r/w plaelm11 0xffff0b2 c 0x0000 r/w plaelm12 0xffff0b3 0 0x0000 r/w p laelm13 0xffff0b3 4 0x0000 r/w plaelm14 0xffff0b3 8 0x0000 r/w plaelm 15 0xffff0b3 c 0x0000 r/w rev. e
aduc7023 data sheet | page 68 of 96 table 77 . plaelmx mmr bit descriptions bit value description 31 to 11 reserved. 10 to 9 mux 0 c ontrol (see table 81). 8 to 7 mux 1 c ontrol (se e table 81 ). 6 mux 2 c ontrol. this bit is set by th e user to select the output of mux 0. this bit is c leared by the user to select the bit value from the pladin register. 5 mux 3 c ontrol. this bit is set by the user to select the input pin of the particular element. this bit is c leared by the u ser to select the output of mux 1. 4 to 1 look - up t able c ontrol. 0000 0. 0001 nor. 0010 b and not a. 0011 not a. 0100 a and not b. 0101 n ot b. 0110 exor. 0111 nand. 1000 a nd . 1001 exnor. 1010 b. 1011 n ot a or b. 1100 a. 1101 a or not b. 1110 or. 1111 1. 0 mux 4 c ontrol. this bit is set by the user to bypass the flip - flop. this bit is cleared by the user to select the flip - flop (cleared by default). placlk register name : placlk address : 0xffff0b40 default v alue : 0x00 access : read/write function: placlk is the clock selection for the flip - flops . t he maximum frequency when using the gpio pins as the cloc k input for the pla blocks is 41.78 mhz. table 78 . placlk mmr bit descriptions bit value description 31 to 7 reserved. 6 to 4 clock s ource s election. 000 gpio c lock on p0.5. 001 gpio c lock on p 1.1 . 010 gpio c lock on p 1.6 . 011 hclk. 100 external 32.768 khz crystal. 101 timer1 o verflow. 110 uclk . 111 inter n al 32,768 osc illator . 3 reserved. 2 to 0 clock source selection. 000 gpio clock on p0.5 . 001 gpio clock on p1.1 . 010 gpio clock on p1.6 . 011 hclk. 100 external 32.768 khz crystal. 101 timer1 overflow. 110 uclk . 111 internal 32,768 oscillator. rev. e
data sheet aduc7023 | page 69 of 96 pl airq register name : plairq address : 0xffff0b44 default v alue : 0x00000000 access : read/write function: plairq enables irq0 and/or irq1 and selects the source of the irq. table 79 . plairq mmr bit descriptions bit value de scription 31 to 13 reserved. 12 pla irq1 enable bit. 11 to 8 0000 pla element 0. 0001 pla element 1. 0010 pla element 2. 0011 pla element 3. 0100 pla element 4. 0101 pla element 5. 0110 pla element 6. 0111 pla element 7. 1000 pla eleme nt 8. 1001 pla element 9. 1010 pla element 10. 1011 pla element 11. 1100 pla element 12. 1101 pla element 13. 1110 pla element 14. 1111 pla element 15. 7 to 5 reserved. 4 pla irq0 enable bit. this bit is s et by the user to enable irq0 output from pla. this bit is c leared by the user to disable irq0 output from pla. 3 to 0 pla irq0 source. 0000 pla element 0. 0001 pla element 1. 0010 pla element 2. 0011 pla element 3. 0100 pla element 4. 0101 pla element 5. 0110 pla e lement 6. 0111 pla element 7. 1xxx reserved. rev. e
aduc7023 data sheet | page 70 of 96 table 80 . feedback configuration bit value plaelm0 plaelm1 to plaelm7 plaelm8 plaelm9 to plaelm15 10 to 9 00 element 15 element 0 element 7 element 8 01 element 2 element 2 element 10 element 10 10 element 4 element 4 element 12 element 12 11 element 6 element 6 element 14 element 14 8 to 7 00 element 1 element 1 element 9 element 9 01 element 3 element 3 element 11 element 11 10 element 5 element 5 eleme nt 13 element 13 11 element 7 element 7 element 15 element 15 plaadc register name : plaadc address : 0xffff0b48 default v alue : 0x00000000 access : read/write function: p laadc is the pla source for the adc start conversion signal. table 81 . plaadc mmr bit descriptions bit value description 31 to 5 reserved. 4 adc s tart c onversion e nable b it. this bit is s et by the user to enable adc start conversion from pla. this bit is c leared by the user to disable adc start co nversion from pla. 3 to 0 adc s tart c onversion s ource. 0000 pla element 0. 0001 pla element 1. 0010 pla element 2. 0011 pla element 3. 0100 pla element 4. 0101 pla element 5. 0110 pla element 6. 0111 pla element 7. 1000 pla element 8. 1001 pla element 9. 1010 pla element 10. 1011 pla element 11. 1100 pla element 12. 1101 pla element 13. 1110 pla element 14. 1111 pla element 15. pladin register name : pladin address : 0xffff0b4c default v alue : 0x00000000 access : read/write function: pladin is a data input mmr for pla. table 82 . pladin mmr bit descriptions bit description 31 to 16 reserved. 15 to 0 input b it to element 15 to element 0. pladout register name : pladout address : 0xffff0b50 default v alue : 0x00000000 access : r ead function: pladout is a data output mmr for pla. this register is always updated. table 83 . pladout mmr bit descriptions bit description 31 to 16 reserved. 15 to 0 output b it from eleme nt 15 to element 0. plalck register name : plalck address : 0xffff0b54 default v alue : 0x00 access : w rite function: plalck is a pla lock option. bit 0 is written only once. when set, it does not allow modifying any of the pla mmrs, except pladin. a pla t ool is provided in the development system to easily configure pla. rev. e
data sheet aduc7023 | page 71 of 96 pulse- width modulator pulse - width modulator gene ral overview the aduc7023 integrates a 5- channel pulse - width modulator (pwm) interface. the pwm outputs can be configured to drive an h - bridge or can be used as standard pwm outputs. on power - up, the pwm outputs default to h - bridge mode. this ensures that the motor is turned off by default. in standard pwm mode, the outputs are arranged as three pairs of pwm pins. users have control over t he period of each pair of outputs and over the duty cycle of each individual output. table 84 . pwm mmrs mmr name description pwmcon 1 pwm control register 1 . pwm0com0 compare register 0 for pwm output 0 and pwm output 1. pwm0com1 compare register 1 for pwm output 0 and pwm output 1. pwm0com2 compare register 2 for pwm output 0 and pwm output 1. pwm0len frequency control for pwm output 0 and pwm output 1. pwm1com0 compare register 0 for pwm output 2 and pwm output 3. pwm1com1 c ompare register 1 for pwm output 2 and pwm output 3. pwm1com2 compare register 2 for pwm output 2 and pwm output 3. pwm1len frequency control for pwm output 2 and pwm output 3. pwm2com0 compare register 0 for pwm output 4 pwm2com1 compare register 1 f or pwm output 4 pwm clr i pwm interrupt clear. in all modes, the pwmxcomx mmrs control the point at which the pwm outputs change state. an example of the first pair of pwm outputs (pwm0 and pwm1) is shown in figure 40 . high side (pwm0) low side (pwm1) pwm0com2 pwm0com1 pwm0com0 pwm0len 08675-056 figu re 40 . pwm timing the pwm clock is selectable via pwmcon 1 with one of the following values: uclk divided by 2, 4, 8, 16, 32, 64, 128, or 256. the length of a pwm period is defined by pwmxlen. the pwm waveforms are set by the count value of the 16 - bit timer and the compare registers contents , as shown with the pwm0 and pwm1 waveforms in figure 40 . the low - side waveform, pwm1, goes high when the timer count reaches pwm0len, and it goes low when the timer c ount reaches the value held in pwm0com2 or when the high - side waveform (pwm0) goes low. the high - side waveform, pwm0, goes high when the timer count reaches the value held in pwm0com0, and it goes low when the timer count reaches the value held in pwm0com1 . pwmcon 1 control register name: pwmcon 1 address: 0xffff0 f80 default value: 0x0 012 access: read and write function: this is a 16 - bit mmr that configures the pwm outputs . rev. e
aduc7023 data sheet | page 72 of 96 table 85 . pwmcon 1 mmr bit designations bit name descr iption 14 s ync enables pwm synchronization. set to 1 by the user so that all pwm counters are reset on the next clock edge after the detection of a high - to - low transition on the p 2 .2/sync pin. cleared by the user to ignore transitions on the p 2 .2/sy nc pin. 13 reserved set to 0 by the user. 12 pwm3 i nv set to 1 by the user to invert pwm3. cleared by the user to use pwm3 in normal mode. 11 pwm1inv set to 1 by the user to invert pwm1. cleared by the user to use pwm1 in normal mode. 10 pwmtrip s et to 1 by the user to enable pwm trip interrupt. when the pwm trip input (pin p1.5/pwm tripinput ) is low, the pwmen bit is cleared and an interrupt is generated. cleared by the user to disable the pwmtrip interrupt. 9 ena if hoff = 0 and hmode = 1. not e that, if not in h - bridge mode, this bit has no effect. set to 1 by the user to enable pwm outputs. cleared by the user to disable pwm outputs. if hoff = 1 and hmode = 1, see table 86. 8 to 6 pwmcp[2:0] pwm clock pre scaler bits. sets the uclk divider. [000] = uclk/2. [001] = uclk/4. [010] = uclk/8. [011] = uclk/16. [100] = uclk/32. [101] = uclk/64. [110] = uclk/128. [111] = uclk/256. 5 poinv set to 1 by the user to invert all pwm outputs. cleared by the user to use pwm outputs as normal. 4 hoff high side off. set to 1 by the user to force pwm0 and pwm2 outputs high. this also forces pwm1 and pwm3 low. cleared by the user to use the pwm outputs as normal. 3 lcomp load compare regi sters. set to 1 by the user to load the internal compare registers with the values in pwmxcomx on the next transition of the pwm timer from 0x00 to 0x01. cleared by the user to use the values previously stored in the internal compare registers. 2 d ir direction control. set to 1 by the user to enable pwm0 and pwm1 as the output signals while pwm2 and pwm3 are held low. cleared by the user to enable pwm2 and pwm3 as the output signals while pwm0 and pwm1 are held low. 1 hmode enables h - bridge mode. 1 set to 1 by the user to enable h - bridge mode. cleared by the user to operate the pwms in standard mode. 0 pwmen set to 1 by the user to enable all pwm outputs. cleared by the user to disable all pwm outputs. 1 in h - bridge mode, hmode = 1. see table 86 to determine the pwm outpu ts. rev. e
data sheet aduc7023 | page 73 of 96 on power - up, pwmcon 1 defaul ts to 0x0012 (hoff = 1 and hmode = 1). all gpio pins associated with the pwm are configured in pwm mode by default (see table 86 ). clear the pwm trip interrupt by writing any value to the pwmclr i mmr. note that when using the pwm trip interrupt, clear the pwm interrupt before exiting the isr. this prevents generation of multiple interrupts. table 86 . pwm output selection pwmco n1 mmr 1 pwm outputs 2 ena hoff poinv dir pwm0 pwm1 pwm 2 pwm3 0 0 x x 1 1 1 1 x 1 x x 1 0 1 0 1 0 0 0 0 0 hs1 ls1 1 0 0 1 hs1 ls1 0 0 1 0 1 0 hs1 ls1 1 1 1 0 1 1 1 1 hs1 ls1 1 x is dont care. 2 hs = high side, ls = low side. table 87 . compare register s name address default value access pwm0com0 0xffff 0f84 0x0000 r/w pwm0com1 0xffff0f88 0x0000 r/w pwm0com2 0xffff0f8c 0x0000 r/w pwm1com0 0xffff0f94 0x0000 r/w pwm1com1 0xffff0f98 0x0000 r/w pwm1com2 0xffff0f9c 0x0000 r/w pwm2com0 0xffff0fa4 0x0000 r/w pwm2com1 0xffff0fa8 0x0000 r/w rev. e
aduc7023 data sheet | page 74 of 96 pwm0com0 com pare register name: pwm0com0 address: 0xffff0f84 default value: 0x0000 access: read and write function: pwm0 output pin goes high when the pwm timer reaches the count value stored in this register. pwm0com1 compare register name: pwm0com1 address: 0xfff f 0f88 default value: 0x0000 access: read and write function: pwm0 output pin goes low when the pwm timer reaches the count value stored in this register. pwm0com2 compare register name: pwm0com2 address: 0xfff f 0f8c default value: 0x0000 acces s: read and write function: pwm1 output pin goes low when the pwm timer reaches the count value stored in this register. pwm0len register name: pwm0len address: 0xfff f 0f90 default value: 0x0000 access: read and write function: pwm1 output pin goes hi gh when the pwm timer reaches the value stored in this register. pwm1com0 compare register name: pwm1com0 address: 0xfff f 0f94 default value: 0x0000 access: read and write function: pwm2 output pin goes high when the pwm timer reaches the count value stored in this register. pwm1com1 compare register name: pwm1com1 address: 0xfff f 0f98 default value: 0x0000 access: read and write function: pwm2 output pin goes low when the pwm timer reaches the count value stored in this register. pwm1com2 compare register name: pwm1com2 address: 0xfff f 0f9c default value: 0x0000 access: read and write function: pwm3 output pin goes low when the pwm timer reaches the count value stored in this register. pwm1len register name: pwm1len address: 0xfff f 0f a0 default value: 0x0000 access: re ad and write function: pwm3 output pin goes high when the pwm timer reaches the value stored in this register. rev. e
data sheet aduc7023 | page 75 of 96 pwm2com0 compare register name: pwm2com0 address: 0xfff f 0fa4 default value: 0x0000 access: read/ write function: pwm4 output pin goes high when the pwm timer reaches the count value stored in this register. pwm2com1 compare register name: pwm2com1 address: 0xfff f 0fa8 default value: 0x0000 access: read/ write function: pwm4 output pin goes low whe n the pwm timer reaches the count value stored in this register. pwmclri register name: pwmclri address: 0xfff f 0fb8 default value: 0x0000 access: write function: write any value to this register to clear a pwm interrupt source. this register must be written to before exiting a pwm interrupt service routine; otherwise, multiple interrupts occur. rev. e
aduc7023 data sheet | page 76 of 96 processor reference peripherals interrupt system there are 22 interrupt sources on the aduc7023 that are controlled by the interrupt controller. most interrupts are generated from the on -c hip peripherals, such as adc . four additional interrupt sources are generated from external interrupt request pins, irq0, irq1, irq2, and irq3. the arm7tdmi cpu core only recognizes interrupts as one of two types, a no rmal interrupt request irq or a fast interrupt request fiq. all the interrupts can be masked separately. the control and configuration of the interrupt system is managed through nine interrupt related registers, four dedicated to irq, and four dedicated to fiq. an additional mmr is used to select the programmed interrupt source. the bits in each irq and fiq registers represent the same interrupt source as described in table 88. the aduc70 23 contains a vectored interrupt controller (vic) that supports nested interrupts up to eight levels. the vic also allows the programmer to assign priority levels to all interrupt sources. interrupt nesting is enabled by setting the enirqn bit in the irqconn register. a number of extra mmrs are used when the full - vectored interrupt controller is enabled. irqsta/fiqsta should be saved immediately upon entering the interrupt service routine (isr) to ensure that all valid interrupt sources are serviced. table 88 . irq/fiq mmrs bit description bit description 0 all i nterrupts ored (fiq only). 1 swi. 2 timer0. 3 timer1. 4 watchdog t imer (timer 2 ). 5 flash control . 6 adc c hannel. 7 p ll l ock. 8 i 2 c0 m aster . 9 i 2 c0 s lave . 10 i 2 c1 m aster. 11 i 2 c1 s lave . 12 spi. 13 exter nal irq0. 14 comparator. 15 psm. 16 external irq1. 17 pla irq 0. 18 external irq2. 19 external irq3. 20 pla irq 1 . 21 pwm. irq the interrupt request (irq) is the exception signal to enter the irq mode of the processor. it is used to service general - purpose interrupt handling of internal and external events. the four 32 - bit registers dedicated to irq are: irqsta, irqsig , irqen, and irqclr. irqsta register name : irqsta address: 0xffff0000 default v alue : 0x00000000 access : r ead function: irqsta ( re ad- only register) provides the current - enabled irq source status. when set to 1, that source generates an active irq request to the arm7tdmi core. there is no priority encoder or interrupt vector generation. this function is implemented in software in a co mmon interrupt handler routine. all 32 bits are logically ored to create the irq signal to the arm7tdmi core. irqsig register name : irqsig address : 0xffff0004 default v alue : 0x00xxx000 access : r ead function: irqsig reflects the status of the differe nt irq sources. if a periph eral generates an irq signal, the corresponding bit in the irqsig is set; otherwise, it is cleared. the irqsig bits are cleared when the interrupt in the particular peripheral is cleared. all irq sources can be masked in the irqe n mmr. irqsig is read - only. rev. e
data sheet aduc7023 | page 77 of 96 irqen register name : irqen address : 0xffff0008 default v alue : 0x00000000 access : read/write function: irqen provides the value of the current enable mask. when each bit is set to 1, the source request is enabled to cr eate an irq exception. when each bit is set to 0, the source request is disabled or masked, which does not create an irq exception. t o clear an already enabled interrupt source, users must set the appropriate bit in the irqclr register. clearing an interru pt irqen bit does not disable this interrupt. irqclr register name : irqclr address : 0xffff000c default v alue : 0x00000000 access : w rite function: irqclr (write - only register) clears the irqen register to mas k an interrupt source. each bit set to 1 clea rs the corresponding bit in the irqen register without affecting the remaining bits. the pair of registers, irqen and irqclr, independently manipulate the enable mask without requiring an atomic read - modify - write. fast interrupt reque st (fiq) the fast int errupt request (fiq) is the exception signal to enter the fiq mode of the processor. it is provided to service data transfer or communication channel tasks with low latency. the fiq interface is identical to the irq interface and provides the second level interrupt (highest priority). four 32 - bit registers are dedicated to fiq: fiqsig, fiqen, fiqclr, and fiqsta. bit 31 to bit 1 of fiqsta are logically ored to create the fiq signal to the core and to bit 0 of both the fiq and irq registers (fiq source). the logic for fiqen and fiqclr does not allow an interrupt source to be enabled in both irq and fiq masks. a bit set to 1 in fiqen clears, as a side effect, the same bit in irqen. likewise , a bit set to 1 in irqen clears, as a side effect, the same bit in fiq en. an interrupt source can be disabled in both irqen and fiqen masks. fiqsig fiqsig reflects the status of the different fiq sources. if a peripheral generates an fiq signal t he corresponding bit in the fiqsig is set, otherwise it is cleared. the fiqsig bits are cleared when the interrupt in the particular peripheral is cleared . all fiq sources can be masked in the fiqen mmr. fiqsig is read only. fiqsig register name: fiqsig address: 0xffff0104 default value: 0x00000000 access: read only fiqen fiqen provides the value of the current enable mask. when a bit is set to 1, the corresponding source request is enabled to create an fiq exception. when a bit is set to 0, the corresponding source request is disabled or masked which does not create an fiq excep tion. the fiqen register cannot be used to disable an interrupt. fiqen register name: fiqen address: 0xffff0108 default value: 0x00000000 access: read/write fiqclr fiqclr is a write - only register that allows the fiqen register to clear in order to mask an interrupt source. each bit that is set to 1 clears the corresponding bit in the fiqen register without affecting the remaining bits. the pair of registers, fiqen and fiqclr, allows independent manipulation of the enable mask without requiring an atomic read - modify - write. this register should only be used to d isable an interrupt source when in the interrupt sources interrupt s ervice routine or i f the peripheral is temporarily disabled by its own control register. this register should not be used to disab le an irq source if that irq source has an interrupt pending or could have an interrupt pending. fiqclr register name: fiqclr address: 0xffff010c default value: 0x00000000 access: write only rev. e
aduc7023 data sheet | page 78 of 96 fiqsta fiqsta is a read - only register that provides the curr ent enabled fiq source status (effectively a l ogic and of the fiqsig and fiqen bits). when set to 1, that source generates an active fiq request to the arm7tdmi core. there is no priority encoder or interrupt vector generation. this function is implemented in software in a common interrupt handler routine. fiqsta register name: fiqsta address: 0xffff0100 default value: 0x00000000 access: read only programmed interrupts because the programmed interrupts are not maskable, they are controlled by another register (swicfg) that writes into both irqsta and irqsig registers and/or the fiqsta and fiqsig registers at the same time. the 32 - bit register dedicated to software interrupt is swicfg described in table 89 . this mmr allows the c ontrol of a programmed source interrupt. table 89 . swicfg mmr bit designations bit description 31 to 3 reserved. 2 programmed i nterrupt fiq. setting/clearing this bit corresponds to setting/clearing bit 1 of fiqsta and fiqsig. 1 programmed i nterrupt irq. setting/clearing this bit corresponds to setting/clearing bit 1 of irqsta and irqsig. 0 reserved. any interrupt signal must be active for at least the minimum interrupt latency time, to be detected by the interrupt controller a nd to be detected by the user in the irqsta and fiqsta registers. 08675-035 pointer to function (irqvec) irq_source fiq_source programmable priorit y per interrupt (irqp0/irqp1/irqp2) interna l arbiter logic interrupt vec t or bit 31 to bit 23 unused bit 1 to bit 0 lbss bit 22 t o bit 7 (irqbase) bit 6 to bit 2 highest priorit y active irq figure 41 . interrupt structure vectored interrupt c ontroller (vic) the ad u c7023 incorporates an enhanced i nterrupt control system or vectored interrupt controll er. the vectored interrupt controller for irq interrupt sources is enabled by setting b it 0 of the irqconn register. similarly, b it 1 of irqconn enables the vectored interrupt controller for the fiq interrupt sources. the vectored interrupt controller prov ides the following enhancements to the standard irq/fiq interrupts: ? vectored interrupts allow a user to define separate interrupt service routine addresses for every interrupt source. this is ach ieved by using the irqbase and irqvec registers. ? irq/fiq inte rrupts can be nested up to eight levels depending on the p riority settings. an fiq still has a higher priority than an irq. therefore, if the vic is enabled for both the fiq and irq and prioritization is maximized, then it is possible to have 16 separate i nterrupt levels. ? programmable interrupt priorities , using the irqp0 to irqp2 registers, can be assigned an interru pt priority level value between 0 and 7. vic mmrs irqbase register the vector base register, irqbase , is used to point to the start address of memory used to store 32 pointer addresses. these pointer addresses are the addresses of the individual interrupt service routines. name: irqbase address: 0xffff0014 default value: 0x00000000 access: read and write table 90. irqbase mmr bit designations bit type initial v alue description 31:16 read only reserved always read as 0 . 15:0 r/w 0 vector b ase address . rev. e
data sheet aduc7023 | page 79 of 96 irqvec register the irq interrupt vector register, irqvec , points to a memory address containing a poin ter to the interrupt service routin e of the currently active irq. this register should only be read when an irq occurs and irq interrupt nesting has been enabled by setting bit 0 of the irqconn register. irqvec register name: irqvec address: 0xffff001c default value: 0x00000000 access: read only table 91 . irqvec mmr bit designations bit type initial v alue description 31 to 23 read only 0 always read as 0. 22 to 7 r/w 0 irqbase register value. 6 to 2 read only 0 highest p riority source. t his is a value between 0 and 21 representing the possible interrupt sources. for example , if the highest currently active irq is timer 2, then these bits are [00100]. 1 to 0 reserved 0 reserved bits. priority registers the irq interrupt vector register, irqvec , points to a memory address containing a pointer to the interrupt service routine of the currently active irq . this register should only be read when an irq occurs and irq interrupt nesting has been enabled by setting bit 0 of the i rqconn register. rev. e
aduc7023 data sheet | page 80 of 96 irqp0 register name: irqp0 address: 0xffff0020 default value: 0x00000000 access: read and write table 92 . irqp0 mmr bit designations bit name description 31 reserved reser ved bit 30 to 28 pllpi a priority level of 0 to 7 can be set for pll lock interrupt. 27 reserved reser ved bit 26 to 24 adcpi a priority level of 0 to 7 can be set for the adc interrupt source . 23 reserved reser ved bit 22 to 20 flashpi a priority level of 0 to 7 can be set for the flash controller interrupt source . 19 reserved reserved bit. 18 to 16 t2pi a priority level of 0 to 7 can be set for timer 2. 1 5 reserved reserved bit. 14 to 12 t1pi a priority level of 0 to 7 can be s et for timer 1. 11 reserved reserved bit. 10 to 8 t0pi a priority level of 0 to 7 can be set for timer 0. 7 reserved reserved bit 6 to 4 swintp a priority level of 0 to 7 can be set for the s oftware interrupt source . 3 to 0 reserved interrupt 0 can not be prioritized . irqp1 register name: irqp 1 address: 0xff ff002 4 default value: 0x00000000 access: read and write table 93. irqp1 mmr bit designation s bit name description 31 reserved reserved bit. 30 to 28 psmpi a priority leve l of 0 to 7 can be set for the p ower supply monitor inte rrupt source. 27 reserved reserved bit. 26 to 24 compi a priority level of 0 to 7 can be set for comparator. 23 reserved reserved bit. 22 to 20 irq 0 pi a priority level of 0 to 7 can be set for irq 0. 19 reserved reserved bit. bit name description 18 to 16 spipi a priority level of 0 to 7 can be set for spi. 15 reserved reserved bit. 14 to 12 i2c1s pi a priority level of 0 to 7 can be set for i 2 c 1 s lave . 11 reserved reserved bit. 10 to 8 i2c 1 mpi a priority level of 0 to 7 can be set for i 2 c 1 m aster . 7 reserved reserved bits. 6 to 4 i2c 0spi a priority level of 0 to 7 can be set for i 2 c 0 slave . 3 reserved reserved bits. 2 to 0 i2c 0 mpi a priority level of 0 to 7 can be set for i 2 c 0 m aster . irqp2 register name: irqp 2 address: 0xffff002 8 default value: 0x00000000 acce ss: read and write table 94 . irqp2 mmr bit designations bit name description 31 to 23 reserved reserved bit. 22 to 20 pwm pi a priority level of 0 to 7 can be set for pwm. 19 reserved reserved bit. 18 to 16 pla1pi a priority le vel of 0 to 7 can be set for pla irq1. 15 reserved reserved bit. 14 to 12 irq 3 pi a priority level of 0 to 7 can be set for irq 3. 11 reserved reserved bit. 10 to 8 irq 2 pi a priority level of 0 to 7 can be set for irq 2. 7 reserved reserved bit. 6 to 4 pla0pi a priority level of 0 to 7 can be set for pla irq0. 3 reserved reserved bit. 2 to 0 irq 1 pi a priority level of 0 to 7 can be set for irq 1. rev. e
data sheet aduc7023 | page 81 of 96 irqconn register the irqconn register is the irq and fiq control register. it contains two active bits. the first to enable nesting and p rioritization of irq interrupts a nd the other to enable nesting and prioritization of fiq interrupts. if these bits are cleared, then fiqs and irqs may still be used , but it is not possible to nest irqs or fiqs. neit her is it poss ible to set an interrupt source priority level. in this default state, an fiq does have a higher priority than an irq. name: irqconn address: 0xffff0030 default value: 0x00000000 access: read and write table 95. i rqconn mmr bit designations bit name description 31 to 2 reserved these bits are reserved and should not be written to. 1 enfiqn this bit is set to 1 to enable nesting of fi q interrupts. this bit is cleared to mean no nesting or prioriti zation of fiqs i s allowed. 0 enirqn this bit is set to 1 to enable nesting of ir q interrupts. when this bit is cleared, it mean s no nesting or prioriti z ation of irqs is allowed. irqstan register if irqconn bit 0 is asserted and irqvec is read then one of these bits is asserted. the bit that asserts depends on the priority of the irq. if the irq is of priority 0 , then bit 0 asserts. if the irq is of priority 1, then b it 1 assert s, and so forth . when a bit is set in this register , all interrupts of that priority and lower are blocked. to clear a bit in this register , all bits of a higher priority must be cleared first. it is only possible to clear one bit a t a time. for example, if this register is set to 0x09 , then writing 0xff changes the register to 0x08 , and writing 0x ff a second time change s the register to 0x00. name: irqstan address: 0xffff003c default value: 0x00000000 access: read and write table 96 . irqstan mmr bit designations bit name description 31 to 8 reserved these bits are r eserved and should not be written to. 7 to 0 this bit is set to 1 to enable nesting of fiq interrupts. when t his bit is cleared , it mean s no nesting or prioritization of fiqs is allowed. fiqvec register the fiq interrupt vector register, fiqvec , points to a memory address containing a pointer to the interrupt service routin e of the currently active fiq. this register should only be read when an fiq occurs and fiq interrupt nesting has been enabled by setting bit 1 of the irqconn register. name: fiqvec address: 0xffff011c default value: 0x00000000 access: read only table 97 . fiqvec mmr bit designations bit type initial v alue description 31 to 23 read only 0 always read as 0. 22 to 7 r/w 0 irqbase register value . 6 to 2 0 highest p riority s ource. this is a value between 0 and 27 that represent s the possible interrupt sources. for example, if the highest currently active fiq is timer 2, then these bits are [00100]. 1 to 0 reserved 0 reserved bits. rev. e
aduc7023 data sheet | page 82 of 96 fiqstan register if irqc onn bit 1 is asserted and fiqvec is read , then one of these bits assert. the bit that asserts depend s on the priority of the fiq. if the fiq is of p riority 0 , then b it 0 assert s . if the fiq is of p riority 1 , then b it 1 assert s, and so forth . when a bit is set in this register, all interrupts of that priority and lower are blocked. to clear a bit in this register , all bits of a higher priority must be cleared first. it is only possible to clear one bit a t a time. for example , if this register is set to 0x09 , then writing 0xff changes the register to 0x08 and writing 0xff a second time change s the register to 0x00. name: fi qstan address: 0xffff013c default value: 0x00000000 access: read/ write table 98 . fiqstan mmr bit designatio ns bit name description 31 to 8 reserved these bits are reserved and should not be written to. 7 to 0 this bit is set to 1 to enables nesting of fiq interrupts. when this bit is cleared , it means no nesting or prioritization of fiqs is allowed. extern al interrupts and pla interrupts the aduc7023 provides up to four external interrupt sources and two pla interrupt sources. these external interrupts can be individually configured as level or rising/falling edge triggered. to enable the external interrup t source or the pla interrupt source , the appropriate bit must be set in the fiqen or irqen register. to select the required edge or level to trigger on, the irqcone register must be appropriately configured. to properly clear an edge - based ex ternal irq in terrupt or an edge - based pla interrupt, set the appropriate bit in the irqclre register. irqcone register name: irqcone address: 0xffff0034 default value: 0x00000000 access: read and write table 99. irqcone mmr bit designation s bit value name description 31 to 12 reserved these bits are reserved and should not be written to. 11 to 10 11 pla1src [1:0] pla irq1 triggers on f alling edge . 10 pla irq1 triggers on r ising edge . 01 pla irq1 triggers on low level . 00 pla irq1 triggers on high level . 9 to 8 11 irq3src[1:0] external irq3 triggers on f alling edge . 10 external irq3 triggers on r ising edge . 01 external irq3 triggers on low level . 00 external irq3 triggers on high level . 7 to 6 11 irq2src[1:0] external ir q2 triggers on f alling edge . 10 external irq 2 triggers on r ising edge . 01 external irq 2 triggers on low level . 00 external irq 2 triggers on high level . 5 to 4 11 pla0src[1:0] pla irq0 triggers on f alling edge . 10 pla irq0 triggers on r ising ed ge . 01 pla irq0 triggers on low level . 00 pla irq0 triggers on high level . 3 to 2 11 irq1src[1:0] external irq1 triggers on f alling edge . 10 external irq1 triggers on r ising edge . 01 external irq1 triggers on low level . 00 external irq1 triggers on high level . 1 to 0 11 irq0src[1:0] external irq0 triggers on f alling edge . 10 external irq0 triggers on r ising edge . 01 external irq0 triggers on low level . 00 external irq0 triggers on high level . rev. e
data sheet aduc7023 | page 83 of 96 irqclre register name: irqclre ad dress: 0xffff0038 default value: 0x00000000 access: read and write table 100 . irqclre mmr bit designations bit name description 31 to 21 reserved these bits are reserved and should not be written to. 20 pla1clri a 1 must be written to this bit in the pla irq1 interrupt service routine to clear an edge triggered pla irq1 interrupt. 19 irq3clri a 1 must be written to this bit in the external irq3 interrupt service routine to clear an edge triggered irq3 interrupt. 18 irq2clri a 1 must be written to this bit in the external irq2 interrupt service routine to clear an edge triggered irq2 interrupt. 17 pla0clri a 1 must be written to this bit in the pla irq0 interrupt service routine to clear an edge triggered pla irq0 interrupt. 16 irq1clri a 1 must be written to this bit in the external irq1 interrupt service routine to clear an edge triggered irq1 interrupt. 1 5 to 14 reserved these bits are reserved and should not be written to. 13 irq0clri a 1 must be written to this bit in t he external irq0 interrupt service routine to clear an edge triggered irq0 interrupt. 12 to 0 reserved these bits are reserved and should not be written to. timers the aduc7023 has three general - purpose timer/counters: timer0 , timer1 , and timer 2 or watch dog timer . these three timers in their normal mode of operation can be either free - running or periodic. in free - running mode, the counter decreases from the maximum value until zero scale and starts again at the minimum value. (it also increases from the m inimum value until full scale and starts again at the maximum value.) in periodic mode, the counter decrements/increments from the value in the load register (txld mmr) until zero/full scale and starts again at the value stored in the load register. the ti mer interval is calculated as follows . if the timer is set to count down , ( ) clocksource prescaler txld interval = if the timer is set to count up , ( ) clocksource prescaler xld fullscale interval = t- the value of a counter can be read at any time by accessing its value register (txval). w hen a tim er is being clocked from a clock other than core clock, an incorrect value may be read (due to asynchronous clock system). in this configuration, txval should always be read twice. if the two readings are different, it should be read a third time to get th e correct value. timers are started by writing in the control register of the corresponding timer (txcon). in normal mode, an irq is generated each time the value of the counter reaches zero when counting down. it is also generated each time the counter va lue reaches full scale when counting up. an irq can be cleared by writing any value to clear the register of that particular timer (txclri). when using an asynchronous clock - to - clock timer, the interrupt in the timer block can take more time to clear than the time it takes for the code in the interrupt routine to execute. ensure that the interrupt signal is cleared before leaving the interrupt service routine. this can be done by checking the irqsta mmr. h ours, minutes, seconds, and 1/128 format to use the timer in hours, minutes, seconds,and hundreds format , select the 32768 khz clock and a prescaler of 256. the hundreds field does not represent milliseconds but 1/128 of a second s (256/32 , 768). the bits representing the h our, minute , and second are not cons ecutive in the register. this arrangement applies to t1ld and t1val when using the hr:min: sec:hundreds format as set in t1con[5:4]. see table 101 for more details. table 101 . h ours, min utes, sec onds, and h undreds f ormat bit value description 31:24 0 to 23 or 0 to 255 hours 23:22 0 reserved 21:16 0 to 59 minutes 15:14 0 reserved 13:8 0 to 59 seconds 7 0 reserved 6:0 0 to 127 1/128 of second timer0 (rtos timer) timer0 is a general - purp ose, 16 - bit timer (count - down) with a programmable prescaler (see figure 42 ). the prescaler source is the core clock frequency (hclk) and can be scaled by factors of 1, 16, or 256. timer0 can be used to start adc conversions as shown in the block diagram in figure 42 . 08675-036 32.768khz oscillator uclk hclk prescaler /1, 16, or 256 16-bit down counter 16-bit load timer0 value timer0 irq adc conversion figure 42 . timer0 block diagram rev. e
aduc7023 data sheet | page 84 of 96 the timer0 interface consists of four mmrs: t0ld, t0val, t0con, and t0clri. t0ld register name : t0ld address : 0xffff0300 d efault v alue : 0x0000 access : read/write t0ld is a 16 - bit load register that holds the 16 - bit value that is loaded into the counter . t0val register name : t 0 va l address : 0xffff0304 default value : 0xffff access : r ead t0val is a 16 - bit read - only register representing the current state of the counter. t0con register name : t0con address : 0xffff0308 default v alue : 0x0000 access : r/w t0con is the configuration mmr described in table 102 . table 102 . t0co n mmr bit descriptions bit value description 15 to 8 reserved. 7 timer0 e nable b it. this bit is set by the user to enable timer0. this bit is cleared by the user to disable timer0 by default. 6 timer0 m ode. this bit is set by the user to operate in periodic mode. this bit is cleared b y the user to operate in free - running mode. default mode. 5 to 4 clock select bits . 00 hclk . 01 uclk . 10 internal 32768 hz oscillator. 11 reserved . 3 to 2 00 source c lock/1. default value. 01 source c lock/ 16. 10 source c lock/256. 11 undefined. equivalent to 00. 1 to 0 reserved. t0clri register name : t0clri address : 0xffff030c default v alue : 0xxx access : w rite t0clri is an 8 - bit register. writing any value to this register clears the interrupt. th e following is the recommended procedure for servicing the timer 0 interru pt: void irq_handler(void) __irq { if(irqsta & bit2) // timer0 irq? { t0clri = 0; //clear timer0 interrupt t0con = 0x00; //disable timer0 interrupt t0con = 0xc8; //enable timer0 interrupt } } timer1 (general - purpose timer) timer1 is a general - purpose, 32 - bit timer (count down or count up) with a programmable prescaler. the source can be the 32 khz external crystal, the undivided system , the core clock , or p1.1 (maximum frequency 44 mh z). this source can be scaled by a factor of 1, 16, 256, or 32,768. the counter can be formatted as a st andard 32 - bit value or as hours, min utes, seconds, hundredths. timer1 has a capture register (t1cap) that can be triggered by a selected irq source initial assertion. this feature can be used to determine the assertion of an event more accurately than the precision allowed by the rtos timer when the irq is serviced. timer1 can be used to start adc conversions as sho wn in the block diagram in figure 43 . 08675-037 32khz oscillator hclk uclk p1.1 irq[19:0] prescaler /1, 16, 256, or 32,768 32-bit up/down counter 32-bit load timer1 value capture timer1 irq adc conversion figure 43 . timer1 block diagram the timer1 interface consists of five mmrs: t1ld, t1val, t1con, t1clri, and t1cap. rev. e
data sheet aduc7023 | page 85 of 96 t1ld register name : t1ld address : 0xffff03 20 default v alue : 0x00000000 access : read/write t1ld is a 32 - bit load register that holds the 32 - bit value that is loaded into the counter . t1val register name : t 1 va l address : 0xffff0324 default v alue : 0xffffffff access : r ead t1val is a 32 - bit read - only register that represents the current state of the counter. t1con register name : t1con address : 0xffff0328 default v alue : 0x00000000 access : read/write t1con is the configuration mmr described in table 103 . table 103 . t1con mmr bit descriptions bit value description 31 to 18 reserved. 17 event s elect b it. this bit is set by the user to enable time capture of an event. this bit is cleared by the user to disable time capture of an event. 16 to 12 event s elect r ange, 0 to 31. these events are as described in table 88 . all events are offset by two, that is, event 2 in table 88 becomes event 0 for the purposes of timer1. 11 to 9 clock s elect. 000 core c lock (hclk). 001 internal 32.768 khz crystal 010 uclk 011 p1.1 r aising e dge t riggered. 8 count u p. this bit is set by the user for timer1 to count up. this bit is cleared by the user for timer1 to count down by default. 7 timer1 e nabl e b it. this bit is set by the user to enable timer1. this bit is cleared b y the user to disable timer1 by default. bit value description 6 timer1 m ode. this bit is set by the user to operate in periodic mode. this bit is cleared by the user to operate in free - running mode. de fault mode. 5 to 4 format. 00 binary. 01 reserved. 10 hours, m in utes, sec onds, h undredths (23 hours to 0 hour). 11 hours, m in utes, seconds, h undredths (255 hours to 0 hour). 3 to 0 prescale. 0000 source c lock/1. 0100 source c lock/16. 1000 source c lock/256. 1111 source c lock/32,768. t1clri register name : t1clri address : 0xffff032c default v alue : 0xxx access : w rite t1clri is an 8 - bit register. writing any value to this register clears the timer1 interrupt. t1cap register name : t1cap address : 0xffff0330 default v alue : 0x00000000 access : r ead t1cap is a 32 - bit register. it holds the value contained in t1val when a particular event occurrs. this event must be selected in t1con. rev. e
aduc7023 data sheet | page 86 of 96 timer2 (watchdog time) timer2 has two modes o f operation: normal mode and watchdog mode. the watchdog timer is used to recover from an illegal software state. when enabled, it requires periodic servicing to prevent it from forcing a processor reset. normal mode timer2 in normal mode is identical to t imer0, except for the clock source and the count - up functionality. the clock source is 32 khz from the pll and can be scaled by a factor of 1, 16, or 256 (see figure 44). 08675-038 32.768khz prescaler 1, 4, 16, or 256 16-bit up/down counter 16-bit load timer2 value timer2 irq watchdog reset figure 44 . timer2 block diag ram watchdog mode watchdog mode is entered by setting bit 5 in the t 2 con mmr. timer 2 decreases from the value present in the t 2 ld register until 0. t2 ld is used as the timeout. the maximum timeout can be 512 sec using the prescaler/256, and full - scale in t 2ld. timer3 is clocked by the internal 32 khz crystal when operating in the watchdog mode. t o enter watchdog mode successfully, bit 5 in the t2con mmr must be set after writing to the t2ld mmr. if the timer reaches 0, a reset or an interrupt occurs, depend ing on bit 1 in the t 2 con register. to avoid reset or interrupt, any value must be written to t2clri before the expiration period. this reloads the counter with t 2 ld and begins a new timeout period. when watchdog mode is entered , t 2 ld and t 2 con are write - p rotected. these two registers cannot be modified until a reset clears the watchdog enable bit, which causes timer 2 to exit watchdog mode. the timer 2 interface consists of four mmrs: t 2 ld, t 2 va l , t2 con, and t 2 clri. t2 ld register name : t2ld address : 0xffff0 360 default v alue : 0x0000 access : read/write t2ld is a 16 - bit register load register that holds the 16 - bit value that is loaded into the counter . t2 val register name : t 2 va l address : 0xffff0364 default v alue : 0xffff access : r ead t2 va l i s a 1 6 - bit r ead - only register that represents the current state of the counter. t2 con register name : t2con address : 0xffff0368 default v alue : 0x0000 access : read/write t2 con is the configuration mmr described in table 104 . table 104 . t 2 con mmr bit descriptions bit value description 15 to 9 reserved. 8 count u p. this bit is set by the user for timer2 to count up. this bit is cleared b y the user for timer2 to count down by default. 7 timer2 enable b it. thi s bit is set by the user to enable timer2. this bit is cleared by user to disable timer2 by default. 6 timer2 m ode. this bit is set by user to operate in periodic mode. this bit is cleared by the user to operate in free - running mode. default mode. 5 watchdog m ode e nable b it. this bit is set by the user to enable watchdog mode. this bit is cleared by the user to disable watchdog mode by default. 4 sec ure clear b it. this bit is set by the user to use the secure clear option. this bit is cleared by the user to disable the secure clear option by default. 3 to 2 prescale. 00 source c lock/1 by d efault. 01 source c lock/16. 10 source c lock/256. 11 undefined. equivalent to 00. 1 watchdog irq option bit. this bit is s et by the user to produce an irq instead of a reset when the watchdog reaches 0. this bit is cleared by the user to disable the irq option. 0 reserved. rev. e
data sheet aduc7023 | page 87 of 96 t2 clri register name : t2clri address : 0xffff036c default v alue : 0xxx access : w rite t2 clri is an 8 - bit register. writing any value to this register on successive occassions clears the timer 2 interrupt in normal mode or resets a new timeout period in watchdog mode . t he user must perform successive writes to this register to ensure resetting the timeout period. secure cl ear bit (watchdog mode only) the secure clear bit is provided for a higher level of protection. when set, a specific sequential value must be written to t 2 clri to avoid a watchdog reset. the value is a sequence generated by the 8 - bit linear feedback shift register (lfsr) polyn omial = x8 + x6 + x5 + x + 1 shown in figure 45 . the initial value or seed is written to t 2 clri before entering watchdog mode. after entering watchdog mode, a write to t2clri must match this expected valu e. if it matches, the lfsr is advanced to the next state when the counter reload happens. if it fails to match the expected state, a reset is immediately generated, even if the count has not yet expired. the value 0x00 should not be used as an initial see d due to the properties of the polynomial. the value 0x00 is always guaranteed to force an immediate reset. the value of the lfsr cannot be read; it must be tracked/generated in software. an e xample of a sequence follows: 1. enter initial seed, 0xaa, in t 2 clr i before starting timer 2 in watchdog mode. 2. enter 0xaa in t 2 clri; timer 2 is reloaded. 3. enter 0x37 in t 2 clri; timer 2 is reloaded. 4. enter 0x6e in t 2 clri; timer 2 is reloaded. 5. enter 0x66. 0xdc was expected; the watchdog resets the chip . 08675-039 clock q d 4 q d 5 q d 3 q d 7 q d 6 q d 2 q d 1 q d 0 figure 45 . 8 - bit lfsr rev. e
aduc7023 data sheet | page 88 of 96 h ardware d esign c onsiderations power supplies the aduc702 3 operational power supply voltage range is 2.7 v to 3.6 v. separate analog and digital power supply pins (av dd and iov dd , respectively) allow av dd to be kept relatively free of noisy digital signals often present on the system iov dd line. in this mode, the part can also operate with split supplies, that is, it can use different voltage levels for each supply. for example, the system can be designed to operate with an iov dd voltage level of 3.3 v while the av dd level can be at 3 v, or vice versa. a typical split supply configuration is shown in figure 46. 08675-041 aduc7023 iov dd av dd gnd ref agnd iognd 0.1f 0.1f 0.1f 10f 10f digi tal supp ly analog supp ly figure 46 . external dual supply connections as an alternative to pro viding two separate power supplies, the user can reduce noise on av dd by placing a small series resistor and/or ferrite bead between av dd and iov dd , and then decoupling av dd separately to ground. an example of this configuration is shown in figure 47 . with this configuration, other analog circuitry (such as op amps, voltage reference, and others) can be powered f rom the av dd supply line as well. 08675-054 aduc7023 iov dd av dd gnd ref agnd refgnd iognd 0.1f 0.1f 0.1f 1.6v 10f 0.1f digi tal supp ly bead 10f figure 47 . external single supply connections i n both figure 46 and figure 47 , a large value (10 f) reservoir capacitor sits on io v dd , and a separate 10 f capacitor sits on av dd . in addition, local small - value (0.1 f) capacitors are located at ea ch av dd and iov dd pin of the chip. as per standard design practice, include all of these capacitors and ensure the smaller capacitors are close to each av dd pin with trace lengths as short as possible. connect the ground terminal of each of these capacitor s directly to the underlying ground plane. finally, the analog and digital ground pins on the aduc7023 must be referenced to the same system ground reference point at all times. io v dd supply sensitivity the iov dd supply is sensitive to high frequency no ise because it is the supply source for the internal oscillator and pll circuits. when the internal pll loses lock, the clock source is removed by a gating circuit from the cpu, and the arm7tdmi core stops executing code until the pll regains lock. this fe ature is to ensure that no flash interface timings or arm7tdmi timings are violated. typically, frequency noise greater than 50 khz and 50 mv p- p on top of the supply causes the core to stop working. if decoupling values recommended in the power supplies section do not sufficiently dampen all noise soures below 50 mv on iov dd , a filter such as the one shown in figure 48 is recommended . 08675-042 aduc7023 iov dd iognd 0.1f 0.1f 10f 1h digi tal supply figure 48 . recommended iov dd supply filter linear voltage regulator each aduc7023 requires a single 3.3 v supply, but the core logic requires a 2.6 v supply. an on - chip linear regulator generates the 2.6 v from iov dd for the core logic. the lv dd pin is the 2.6 v s upply for the core logic. an external compensation capacitor of 0.47 f must be connected between lv dd and dgnd (as close as possible to these pins) to act as a tank of charge , as shown in figure 49. 08675-043 aduc7023 lv dd dgnd 0.47f figure 49 . voltage regulator connections the lv dd pin should not be used for any other chip. it is also recommended to use excellent power supply decoupling on iov dd to help improve line regulation performance of the on - chip voltage regulator. rev. e
data sheet aduc7023 | page 89 of 96 grounding and board layout recommendations as with all high resolution data converters, special attention must be paid to grounding and pc board layout of the aduc7023 - based designs to achieve optimum performance from the adcs and dac s. although the parts have sepa rate pins for analog and digital ground (agnd and dgnd), the user must not tie these to two separate ground planes unless the two ground planes are connected very close to the part. this is illustrated in the simplified example shown in figure 50 a. in systems where digital and analog ground planes are connected together somewhere else (at the system power supply, for example), the planes cannot be reconnected near the part because a ground loop would result. in these cases, tie all the aduc7023 agnd and dgnd pins to the analog ground p lane, as illustrated in figure 50 b. in systems with only one ground plane, ensure that the digital and analog components are physically separated onto separate halves of the board so that digital return currents do not flow near analog circuitry (and vice versa). the aduc7023 can then be placed between the digital and analog sections, as illustrated in figure 50c. 08675-044 a. place analog components here place digital components here agnd dgnd b. place analog components here place digital components here agnd dgnd c. place analog components here place digital components here dgnd figure 50 . system grounding schemes in all of these scenarios, and in more complicated real - life applications, users should pay particular attention to the flow of current from the supplies and back to ground. make sure the return paths for all currents are as close as possible to the paths the currents took to reach their destinations. for example, do not power components on the analog side (as seen in figure 50 b) with iov dd because that would force return currents from iov dd to flow through agnd. avoid digital currents flowing under analog circuitry, which can occur if a noisy digital chip is placed on the left half of the board (show n in figure 50 c). if possible, avoid large discontinuities in the ground plane(s) such as those formed by a long trace on the same layer, because they force return signals to travel a longer path. in addition, make all connecti ons to the ground plane directly, with little or no trace separating the pin from its via to ground. when connecting fast logic signals (rise/fall time < 5 ns) to any of the aduc7023 digital inputs, add a series resistor to each relevant line to keep rise and fall times longer than 5 ns at the input pins of the part . a value of 100 ? or 200 ? is usually sufficient enough to prevent high speed signals from coupling capacitively into the part and affecting the accuracy of adc conversions. clock oscillator the clock source for the aduc7023 can be generated by the internal pll or by an external clock input. to use the internal pll, connect a 32.768 khz parallel resonant crystal between xclki and xclko, and connect a capacitor from each pin to ground , as shown in figure 51 . the crystal allows the pll to lock correctly to give a frequency of 41.78 mhz . if no external crystal is present, the internal oscillator is used to give a typical frequency of 41.78 mhz 3%. 08675-045 aduc7023 to internal pll 12pf xclki 32.768khz 12pf xclko figure 51 . external parallel resonant crystal connections to use an external source clock input instead of the pll (see figure 52 ), bit 1 and bit 0 of pllcon must be modified. the external clock uses p1.1 and xclk. 08675-046 aduc7023 to frequency divider xclko xclki xclk external clock source figure 52 . connecting an external clock source using an external clock source, the aduc7023 specified operational clock speed range is 50 khz to 44 mhz 1%, which ensures correct operation of the analog peripherals and flash/ee . rev. e
aduc7023 data sheet | page 90 of 96 power-on reset operation an internal power-on reset (por) is implemented on the aduc7023. for lv dd below 2.40 v typical, the internal por holds the part in reset. as lv dd rises above 2.40 v, an internal timer times out for typically 64 ms before the part is released from reset. the user must ensure that the power supply iov dd has reached a stable 2.7 v minimum level by this time. likewise, on power-down, the internal por holds the part in reset until lv dd has dropped below 2.40 v. figure 53 illustrates the operation of the internal por in detail. 08675-047 iov dd 3.3v 2.6v 2.40v typ 2.40v typ 64ms typ lv dd por figure 53. internal power-on reset operation rev. e
data sheet aduc7023 | page 91 of 96 typical system confi guration a typical aduc7023 configuration is shown in figure 54 . it su mmarizes some of the ha rdware considerations. the bottom of the lf csp package has an exposed pad that needs to be soldered to a metal plate on the board for mechanical reasons. the metal plate of the board can be connected to ground. 08675-055 av dd ad uc7023 p0.5/sda0/plai[1]/comp out xclki xclko rt ck tms p0.0/ n trst/ adc bu sy / pla i[ 8 ] / bm p0.1/plai[9]/tdo p0.2/plao[8]/tdi p0.3/plao[9]/tck p1.2/adc4/irq2/plai[3]/eclk p1.3/adc5/irq3/plai[4] v ref a d c0 a d c1 a d c2 / cm p0 a d c3 / cm p1 agnd p0.6/miso/scl1/plai[2] p0.7/miso/sda1/plao[0] p1 .0 / spiclk/ pwm 0 / pla o[ 1 ] p1.1/ss/irq1/pwm1/plao[2]/t1 dgnd iov dd lv dd rst gnd ref d a c0 d a c1 d a c2 d a c3 p0.4/irq0/scl0/plai[0]/conv pull-ups for i 2 c pins figure 54 . typical system configuration rev. e
aduc7023 data sheet | page 92 of 96 development tools pc - based tools four types of development systems are available for the aduc7023 family. the aduc7023 quickstart plus is intended for new users who want to have a comprehensive hardware develo pment environment . these systems consist of the following pc - based (windows? compatible) hardware and software development tools. hardware the hardware system uses the aduc7023 evaluation board , a serial port programming cable , and a rdi - compliant jtag emu lator (included in the aduc7023 quickstart plus only) . software the software system has an i ntegrated development environment , incorporating an assembler, compiler, and nonintrusive jtag - based debugger . the software sytem uses a s erial downloader software and e xample code . miscellaneous the miscellaneous systems use cd - rom documentation . in - circuit i 2 c downloader an i 2 c- based serial downloader is available at www.analog.com . this software requires an usb - to -i 2 c adaptor board available from analog devices . the part number for this usb - to -i 2 c adapter is usb - i2c/lin - conv -z. rev. e
data sheet aduc7023 | page 93 of 96 outline dimensions 05-06-2011-a 0.50 bsc bottom view top view pin 1 indicator exposed pad p i n 1 i n d i c a t o r seating plane 0.05 max 0.02 nom 0.20 ref coplanarity 0.08 0.30 0.23 0.18 6.10 6.00 sq 5.90 0.80 0.75 0.70 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. 0.45 0.40 0.35 0.25 min 4.45 4.30 sq 4.25 compliant to jedec standards mo-220-wjjd. 40 1 11 20 21 30 31 10 figure 55. 40-lead frame chip scale package [lfcsp_wq] 6 mm 6 mm body, very thin quad (cp-40-10) dimensions shown in millimeters compliant to jedec standards mo-220-whhd. 1 0.50 bsc 3.50 ref bottom view top view pin 1 indicator 32 9 16 17 24 25 8 exposed pad p i n 1 i n d i c a t o r 3.65 3.50 sq 3.45 s eating plane 0.05 max 0.02 nom 0.20 ref coplanarity 0.08 0.30 0.25 0.18 5.10 5.00 sq 4.90 0.80 0.75 0.70 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. 0.50 0.40 0.30 0.25 min 04-02-2012-a figure 56. 32-lead lead frame chip scale package [lfcsp_wq] 5 mm 5 mm body, very thin quad (cp-32-11) dimensions shown in millimeters rev. e
aduc7023 data sheet | page 94 of 96 a b c d e f 0.650 0.600 0.550 3.445 3.405 sq 3.365 1 2 3 45 bottom view (ball side up) top view (ball side down) side view 0.270 0.240 0.210 0.380 0.360 0.340 0.360 0.320 0.280 2.50 bsc sq ball a1 identifier 6 coplanarity 0.05 seating plane 0 8-01-2012-a 0.50 ball pitch figure 57. 36-ball wafer level chip scale package [wlcsp] (cb-36-3) dimensions shown in millimeters rev. e
data sheet aduc7023 rev. e | page 95 of 96 ordering guide model 1 adc channels dac channels flash/ ram gpio downloader temperature range package description package option ordering quantity aduc7023bcp6z62i 12 4 62 kb/8 kb 20 i 2 c ?40c to +125c 40-lead lfcsp_wq cp-40-10 490 aduc7023bcp6z62irl 12 4 62 kb/8 kb 20 i 2 c ?40c to +125c 40-lead lfcsp_wq cp-40-10 2,500 aduc7023bcp6z62ir7 12 4 62 kb/8 kb 20 i 2 c ?40c to +125c 40-lead lfcsp_wq cp-40-10 750 aduc7023bcpz62i 8 4 62 kb/8 kb 12 i 2 c ?40c to +125c 32-lead lfcsp_wq cp-32-11 490 aduc7023bcpz62i-rl 8 4 62 kb/8 kb 12 i 2 c ?40c to +125c 32-lead lfcsp_wq cp-32-11 5,000 aduc7023bcpz62i-r7 8 4 62 kb/8 kb 12 i 2 c ?40c to +125c 32-lead lfcsp_wq cp-32-11 1,500 aduc7023bcbz62i-r7 10 4 62 kb/8 kb 16 i 2 c ?40c to +125c 36-ball wlcsp cb-36-03 1,500 eval-aduc7023qspz aduc7023 quickstart plus development system using 32-pin aduc7023 eval-aduc7023qspz1 aduc7023 quickstart plus development system using 40-pin aduc7023 EVAL-ADUC7023QSPZ2 aduc7023 quickstart plus development system using 36-ball aduc7023 1 z = rohs compliant part.
aduc7023 data sheet rev. e | page 96 of 96 notes i 2 c refers to a communications protocol originally developed by philips semiconductors (now nxp semiconductors). ?2010C2013 analog devices, inc. all rights reserved. trademarks and registered trademarks are the prop erty of their respective owners. d08675-0-7/13(e)


▲Up To Search▲   

 
Price & Availability of EVAL-ADUC7023QSPZ2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X